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

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


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"/>
permanent link

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 ♦
Your answer
toggle preview

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:

×113
×26
×6

question asked: 27 Aug '13, 14:16

question was seen: 3,205 times

last updated: 08 Sep '13, 17:30

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