Why not ask your question on the new OpenStreetMap Community Forum?


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

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 ♦
accept rate: 23%

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

accept rate: 21%

edited 16 Sep '10, 20:14

Jonathan%20Bennett's gravatar image

Jonathan Ben...

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



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:


question asked: 16 Sep '10, 13:26

question was seen: 8,616 times

last updated: 16 Sep '10, 20:14

powered by OSQA