Hello,

I need to display the the capital cities on a world map. This has to be done interactively in Flash. So I need the geodata of all capital countries. How can I get this geodata (longitude/latitude) from openstreetmap? Is this possible?

Thanks for help.

asked 16 Sep '10, 13:26

ffx's gravatar image

ffx
31113
accept rate: 0%


There is a Geonames Web Service that allows you to download cities. This is probably better suited for solving your problem than OSM.

permanent link

answered 16 Sep '10, 14:06

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
71.3k846451113
accept rate: 24%

You can download all nodes tagged with capital=yes from XAPI. If you want to be careful you can also check if they are also tagged with place=city.

permanent link

answered 16 Sep '10, 19:33

petschge's gravatar image

petschge
8.0k207196
accept rate: 21%

edited 16 Sep '10, 20:14

Jonathan%20Bennett's gravatar image

Jonathan Ben...
8.2k1785108

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:

×18
×6
×5
×2

question asked: 16 Sep '10, 13:26

question was seen: 6,944 times

last updated: 16 Sep '10, 20:14

powered by OSQA