iandees / planet-notes-dump

A utility to dump OpenStreetMap notes from the database into an XML file for bulk use.
MIT License
10 stars 5 forks source link

Get rid of <comments> tag #7

Closed Zverik closed 10 years ago

Zverik commented 10 years ago

I propose making <comment> tag a child of <note> itself, without <comments> wrapper. It is in line with other osm objects xml representations: remember <tag> and <member> elements, for example.

joto commented 10 years ago

:+1:

harry-wood commented 10 years ago

So should the notes API change? (e.g. http://api.openstreetmap.org/api/0.6/notes/100 ) I would've expected the two to be kept consistent either way:

Zverik commented 10 years ago

Notes API is awful. Why ID in a separate tag? Why URLs and HTML? Why tags in comments, and not attributes? I understand it was to quicken front-end development, but it is no public API.

Zverik commented 10 years ago

I propose to keep old one under /notes and make a new, proper API under /note (singular, re: /node, /changeset).

iandees commented 10 years ago

Hi folks, let's move the discussion to the correct repo please.