1

Hi, I am new to this OSM...

I am having set of node IDs for the china towns. How can I get the Latitude and Longitude for those IDs? Please tell the method to find out the lat/long. Thank you in advance.

asked 03 Jun '13, 16:44

Uma%20Maheswari%20K's gravatar image

Uma Maheswari K
696610
accept rate: 0%

edited 08 Jun '13, 15:33

aseerel4c26's gravatar image

aseerel4c26 ♦
32.2k16239552

2

What is a "set of ID"? What is inside? What is a "ID"?

(04 Jun '13, 00:09) aseerel4c26 ♦
1

Uma Maheswarari to clear our confusion, do you mean town node IDs? perhaps you could edit the question or add a comment please.

(07 Jun '13, 14:33) andy mackey
2

Yes..It is town node IDs ..sorry for the confusion.

(08 Jun '13, 07:46) Uma Maheswari K
1

@Uma Maheswari K: thanks, I have added it to your question.

(08 Jun '13, 15:30) aseerel4c26 ♦

4 Answers:
5

If you mean OpenStreetMap node IDs, you can get them through the API:

http://api.openstreetmap.org/api/0.6/node/1989098258

where 1989098258 is the node ID.

The resulting XML document contains lat and lon.

permanent link

answered 06 Jun '13, 14:49

gormo's gravatar image

gormo
2.9k32660
accept rate: 13%

Is there any other way to find out the Lat/Long for the node ID's ?

(08 Jun '13, 21:25) Chimia
1

Yes. There are tons of other ways, but if we know your requirements (what do you want? how would you like to get those lat/lon values? what do you want to do with them?) we can answer with methods that suit your needs.

(08 Jun '13, 22:30) gormo

Thanks a lot. This is the answer I searched for,but for some ID's it doesn't work.It simply return 'webpage not found'.I don't know why?What can I do for that? Could you plz help me?

(09 Jun '13, 07:53) Uma Maheswari K

Can you give an example of one of the IDs that you get "webpage not found" for?

(09 Jun '13, 10:34) SomeoneElse ♦
1

Ya,sure for example 2126333.

(09 Jun '13, 15:22) Uma Maheswari K
2

That's because that node was deleted a long time ago.

http://www.openstreetmap.org/browse/node/2126333/history

(09 Jun '13, 15:49) cartinus
2

and from where do you got that node id? deleted in 2006 and was in the USA ...

(09 Jun '13, 15:50) aseerel4c26 ♦
showing 5 of 7 show 2 more comments
1

Not too sure what you are asking but the Potlatch2 editor will give a lat lon read out of the cursor if you tic the box under the options tab. note the format is in degrees and decimal degrees. Not degrees. minutes and seconds. JOSM also gives a read out but I could not see it in iD

permanent link

answered 03 Jun '13, 18:16

andy%20mackey's gravatar image

andy mackey
12.0k76128263
accept rate: 4%

edited 03 Jun '13, 18:17

1

Is your question that you have a name of a town and you want a coordinate? Then you can use Nominatim to get the coordinate.

HTH /al

permanent link

answered 04 Jun '13, 14:00

_al's gravatar image

_al
84521018
accept rate: 4%

-2

Type a city name in the search box to centre the map on the city. then right click permalink, then copy and paste it. This is the Chinese capital. http://www.openstreetmap.org/?lat=39.907&lon=116.393&zoom=11&layers=M you can see it as the Lat and Lon in it.

permanent link

answered 03 Jun '13, 20:05

andy%20mackey's gravatar image

andy mackey
12.0k76128263
accept rate: 4%

Three answers? Really? You can edit your own answer to merge your suggestions.

(06 Jun '13, 15:26) scai ♦

The questioner up voted one. It would be confusing to mix all three.

(06 Jun '13, 21:04) andy mackey

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:

×78
×45
×42
×19
×5

question asked: 03 Jun '13, 16:44

question was seen: 16,317 times

last updated: 09 Jun '13, 15:50

powered by OSQA