urbanriskmap / cognicity-reports-detik Goto Github PK
View Code? Open in Web Editor NEWThis project forked from smart-facility/cognicity-reports-detik
Cognicity reports module for Detik.com reports
License: GNU General Public License v3.0
This project forked from smart-facility/cognicity-reports-detik
Cognicity reports module for Detik.com reports
License: GNU General Public License v3.0
Hi @talltom ,
We got the reply from Detik about the API question for Surabaya and Bandung:
Based on the agreement with PetaJakarta last time, they opened their flood report API for us. And it was already for entire Indonesia area, so technically we already got what we just ask now.
They can not clip it based on the cities that are requested, but we can freely do it for our PetaBencana.
If we can not see any reports from Surabaya or Bandung, it could be:
p.s I am sorry, I don't understand exactly why we failed to load the data for Bandung and Surabaya since we were accidentally see a report from Kalimantan about 2 months ago.
cc @anexact
Schema files have been centralized in cognicity-schema repo
Need to change upsert function to detik.upsert_users
.
Old upsert function is at: https://github.com/urbanriskmap/cognicity-reports-detik/blob/master/DetikDataSource.js#L295
cc. @matthewberryman
2017-01-17T10:41:24.446Z - error: dbQuery: {"text":"INSERT INTO detik.reports (contribution_id, created_at, disaster_type, text, lang, url, image_url, title, the_geom) VALUES ($1, to_timestamp($2), $3, $4, $5, $6, $7, $8, ST_GeomFromText('POINT(' || $9 || ')',4326));","values":[253032,1484649399,"Selasa (17/1/2017) Banjir terjadi di desa Bajang, Balong, Ponorogo, sekitar pukul 15.30 wib. Menurut warga sekitar banjir terjadi akibat hujan deras yang terjadi sejak pukul 14.00 wib. ","id","https://pasangmata.detik.com/contribution/253032","https://images.detik.com/community/pasma/2017/01/17/1484649399271939873.jpg","Desa Bajang Ponorogo Dilanda Banjir Akibat Hujan Deras","111.4544179 -7.9629978"]}, error: bind message supplies 8 parameters, but prepared statement "" requires 9
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.