osmlab / osm-request

JS library for OpenStreetMap API communication
MIT License
29 stars 7 forks source link

Use JSON API endpoints instead of the default XML #29

Open Binnette opened 3 months ago

Binnette commented 3 months ago

Hi @PanierAvide, instead of using API url that return XML, we should use url that return JSON

Example, instead of https://api.openstreetmap.org/api/0.6/changeset/154086955

We should use https://api.openstreetmap.org/api/0.6/changeset/154086955.json

Do you agree on that? If so, I can work on this and get rid of xml to json manipulations to "clean" the code.

PanierAvide commented 3 months ago

If we can get rid of XML, yes you can do the switch :grin: