This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Is there an API to modify GPX metadata?

0

Hello

I uploaded bunch of GPX traces using batch upload but I accidentally left visibility to PUBLIC instead of IDENTIFIABLE. I would like to use API to fix it, but I found nothing there about updating the metadata. I can do it on the webpage, but the list is too long. Is there some API-like way to do it?

Thanks

asked 31 Oct '11, 19:54

Martin's gravatar image

Martin
75226
accept rate: 0%


One Answer:

2

Yes, you can update the metadata of the GPX trace via the API. Simply PUT the new details to api/0.6/gpx/[id of trace]. If you need to see the format of the XML required to do this, GET the same URL first.

To get a list of all the traces that you have uploaded already, then GET /api/0.6/user/gpx_files

Some additional resources to help you are

answered 01 Nov '11, 08:28

Andy%20Allan's gravatar image

Andy Allan
12.5k23128153
accept rate: 28%

Source code available on GitHub .