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

Why doesn’t pasting GPS coords into URL work in iD?

1

If I'm looking at OSM, the URL includes a set of coordinates. I can just paste in the coordinates of the place I'm looking for and hit "Enter" and it'll take me right to it. Slick! However, the same trick doesn't seem to work in iD, even though the URL format is similar. It'd be kinda helpful if it did. Presently, I have to leave the editor, type in the GPS coords I want to go to, and then go back into the iD editor.

asked 13 Oct '14, 15:04

Kirbert's gravatar image

Kirbert
36335
accept rate: 0%

edited 16 Oct '14, 13:21

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

1

typing in the new coordinates in Chrome on OS X has no effect as you pointed out. However, when I select the URL and drag it again into the address bar, ID updates the position.

(15 Oct '14, 13:30) escada

One Answer:

3

Let's take the following example (Paris): https://www.openstreetmap.org/#map=18/48.85623/2.34703

  1. Copy the lat/lon part in the URL: 48.85623/2.34703

  2. Enter 48.85623,2.34703 in iD's Search features and hit enter. This will take you to the right location. Note that we replaced separator character / (slash) by a , (comma). A space separator will also work in this case.

  3. Done.

If you don't like replacing the slash separator, just create a feature request on github.

alt text

answered 18 Oct '14, 09:21

mmd's gravatar image

mmd
5.7k15388
accept rate: 37%

edited 18 Oct '14, 09:32

Source code available on GitHub .