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

How to get coordinate information of a road

0

Hi, I wonder how can I get the coordinate information of a road. For example, several geo position along a road. So that I could use these information to know the position and direction of a road.

asked 16 Jul '20, 02:34

SAALTY's gravatar image

SAALTY
16112
accept rate: 0%


2 Answers:

2

Graphopper and OSRM have the ability to create and export a GPX see box at the bottom left.

alt text

answered 16 Jul '20, 18:58

andy%20mackey's gravatar image

andy mackey
13.2k87143285
accept rate: 4%

Thanks for your answer! Is there a way to export all road segments in a city?

(17 Jul '20, 01:50) SAALTY
1

You can use the Export button on https://www.openstreetmap.org for really small areas. For larger areas see country and area extracts.

(17 Jul '20, 07:27) scai ♦

I'll have a look on it, thanks!

(20 Jul '20, 09:21) SAALTY

1

There's a tricky method: when you are on openstreetmap.org, right click on the point you want to know the coordinates of and select "Center map here". Then, in the URL bar the URL will be changed to something like https://www.openstreetmap.org/#map=ZZ/XX.XXXXX/YY.YYYYY:ZZ is the map zoom level, X and Y are the N/S coordinates and E/W coordinates respectively.

answered 16 Jul '20, 18:18

Mannivu's gravatar image

Mannivu
1.1k31027
accept rate: 6%

Source code available on GitHub .