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

Way node in correct order for way path

0

There is a method or query, to get the way node, that points in order to way's real path ?

Request response ways node: osm> node ... A> node ... B> /osm>

But in reality point B is before A, in way path...

asked 05 Feb '14, 16:00

rik88's gravatar image

rik88
1111
accept rate: 0%


One Answer:

0

(if you're asking how to get the API to return the nodes of a way in order)

For ways, yes, that's what the API returns you currently.

EDIT: I'm not sure exactly what the question is here. I had initially thought it was about the order of nodes returned by a way "get" call, but I'm now not so sure.

answered 05 Feb '14, 16:07

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

edited 05 Feb '14, 16:26

But if i want node coord, i have to fetch occurrences in way structure or there is a particular request for do that?

(05 Feb '14, 16:19) rik88
2

I'm not sure what question you're asking, but the API's "get way /full" call might be the answer:

https://wiki.openstreetmap.org/wiki/API_v0.6#Full:GET.2Fapi.2F0.6.2F.5Bway.7Crelation.5D.2F.23id.2Ffull

Would it be possible to edit your question to include more words that describe what it is that you're actually trying to do?

(05 Feb '14, 16:24) SomeoneElse ♦

Source code available on GitHub .