NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I'm trying to download data for a "way", but the individual nodes only have a 'ref' tag - not 'lat' or 'lon'. If I click on the individual node it will display the lat/lon data, but how do I download the entire "way" in such a manner that it includes this data and can be converted into gpx, kml, etc? It really feels like there is something obvious I'm missing... Thanks!

asked 19 Apr '23, 18:32

jgruss1234's gravatar image

jgruss1234
26112
accept rate: 0%


This is normal. What you see in an XML way object is not nodes, but references to nodes; you will have to look them up to find the coordinates. If you use the "full" modifier on an API query, e.g. https://www.openstreetmap.org/api/0.6/way/123/full then the nodes are present in the response.

permanent link

answered 19 Apr '23, 20:58

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×167
×55
×45

question asked: 19 Apr '23, 18:32

question was seen: 991 times

last updated: 19 Apr '23, 20:58

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum