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

Which of the nodes are part of a route (or, a “way”), and which of the nodes are actual places (like a hiking path…)?

1

We're programming an app for Windows Phone 7, and we're using Open Street Map (OSM) as our data source.

We're using this URI: http://api.openstreetmap.org/api/0.6/map?bbox=32.0846,034.8415,32.3846,035 and we're filling in coordinates according to the current position of the app's user.

The data we receive is : "nodes", "way", and "relation".

This is our question:

  • How could we know which of the nodes are part of a route (or, a "way"), and which of the nodes are actual places (like a hiking path...)?

Thanks :)

asked 27 Aug '13, 14:13

yehudit's gravatar image

yehudit
61667
accept rate: 0%

edited 27 Aug '13, 20:57

MagicFab's gravatar image

MagicFab
935101622

Just a thought - maybe it might help if you could ask some of your questions "in real time" in one of OSM's IRC channels? There are several - including in languages other than English.

(28 Aug '13, 12:08) SomeoneElse ♦

One Answer:

2

Okay. Seems you start from scratch in OSM ;-)

Please read this docs about OSM fundamental elements (nodes, ways, relations):

https://wiki.openstreetmap.org/wiki/Elements

The simple version of a "route" is one or several ways attached together. The route identification comes from attached tags like "highway", "name" and/or "ref". It's a "continuous" route when the last node of a way is also the first node of the next way. But be carefull, sometimes, a route is interrupted by a junction roundabout which might not carry one of the "name" or "ref" tags.

Also "routes" can be assembled by a relation (but it's not mandatory) where all ways are listed and common attributs grouped, like hiking routes, bus routes, road routes. See more on this page:

https://wiki.openstreetmap.org/wiki/Relation:route

answered 28 Aug '13, 12:00

Pieren's gravatar image

Pieren
9.8k2083157
accept rate: 15%

edited 29 Aug '13, 10:39

Source code available on GitHub .