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

Getting geodata of all capital cities and displaying it on a world map of open street map

2

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%


2 Answers:

0

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

answered 16 Sep '10, 14:06

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

0

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.

answered 16 Sep '10, 19:33

petschge's gravatar image

petschge
8.3k217398
accept rate: 21%

edited 16 Sep '10, 20:14

Jonathan%20Bennett's gravatar image

Jonathan Ben...
8.3k1785108

Source code available on GitHub .