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

How to find more informations about nodes and ways?

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 get some more information about a "way", or a "node" - its name, its website, etc. ?

asked 27 Aug '13, 14:16

yehudit's gravatar image

yehudit
61667
accept rate: 0%

edited 27 Aug '13, 20:58

MagicFab's gravatar image

MagicFab
935101622


One Answer:

2

First, unless you are writing the OSM editor, that is not correct usage of 0.6 API . See that page for more info on alternatives (like running your own or third party server, or switching to XAPI or Overpass. There are usage examples there, and you get your node tags too.

For example, sending Overpass query

  (node(32.0846,034.8415,32.3846,035);<;);out;

returns (among other things)

  <node id="114130322" lat="32.1664181" lon="34.8426014"/>
  <node id="114130323" lat="32.1649314" lon="34.8425907">
    <tag k="highway" v="traffic_signals"/>
  </node>
  <node id="194227886" lat="32.1274304" lon="34.8489519"/>
  <node id="195293840" lat="32.3748585" lon="34.9086394"/>

answered 07 Sep '13, 18:12

Matija%20Nalis's gravatar image

Matija Nalis
7502916
accept rate: 11%

edited 08 Sep '13, 17:30

2

@Matija Nalis From memory I think that it's the preview of XML here that's broken, not the eventual display.

(07 Sep '13, 21:19) SomeoneElse ♦

Source code available on GitHub .