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

Does the IDeditor have an api to upload GPX files?

1

Does the IDeditor have an api to upload GPX files?

I have a script that compares GPX tracks with existing OSM data. If the data doesn't exist in the OSM database, a small snipped of the GPX track is created. Is there a way to automatically upload that file to the IDeditor so I can edit it? Currently I use the drag and drop function but I'd like to speed up the process.

asked 21 Jan '15, 09:21

Wasus's gravatar image

Wasus
346161725
accept rate: 0%

"edit" from the GPS trace list works. If I set my default editor to iD and do this:

https://www.openstreetmap.org/edit?gpx=1870828#map=16/53.1457/-1.2614

I do see the specific trace (and waypoints) underneath it). Is this what you mean, or do you mean something else?

(21 Jan '15, 09:25) SomeoneElse ♦

No I don't think this is what I mean. I am looking for an api to upload GPX tracks.

(21 Jan '15, 09:27) Wasus
1

Different from https://www.openstreetmap.org/traces somehow? (i.e. upload to OSM, get the GPS trace number, then invoke iD with that trace number).

(21 Jan '15, 09:30) SomeoneElse ♦

Yeah you can just drag and drop a GPX file into IDeditor without actually adding it to OSM

(21 Jan '15, 09:32) Wasus

Source code available on GitHub .