mapbox / gabbar

Guarding OpenStreetMap from harmful edits using machine learning
MIT License
19 stars 7 forks source link

Using the new osmcha API to download changeset labels #76

Closed bkowshik closed 7 years ago

bkowshik commented 7 years ago

The new osmcha is here! 🎉

With it comes some changes to the API, specially render_csv=True being deprecated. 😞 The documentation of the API is at the link below:

Changes

geometry.coordinates
geometry.type
id
properties.area
properties.check_date
properties.check_user
properties.checked
properties.comment
properties.create
properties.date
properties.delete
properties.editor
properties.harmful
properties.imagery_used
properties.is_suspect
properties.modify
properties.source
properties.uid
properties.user
type

cc: @anandthakker @batpad @geohacker

bkowshik commented 7 years ago

I used the json endpoint of the osmcha API instead of the csv endpoint. The advantages are: