Open francbartoli opened 12 years ago
+1
As per #970
There's already partial support for GeoJSON since this is how we load the reports layer into OpenLayers.. All handled through the json controller. The urls are: /json - individual reports /json/cluster - clustered reports /json/single/ID - single report and its closest neighbours
There are a few query params you can pass to filter this down: start time - s (as a unix timestamp I think) end time - e (as a unix timestamp I think) category - c
This should be merged into the API, but most likely won't happen in the 2.x codebase. Rather we'll try to get it right in 3.0
This has infact already been built into the 3.0 core api..
I've added this to the V3 features wishlist at https://phabricator.ushahidi.com/T559; please feel free to continue working on this for V2.
It would be great to fetch data as GeoJSON formatted output. I'm guessing a kind of such thing:
http:///api?task=incidents&output=geojson
if you do not want to make this geographical specification as the default kind of json output