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

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 ♦
82.5k927201273
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

petschge
8.3k217398
accept rate: 21%

edited 16 Sep '10, 20:14

Jonathan%20Bennett's gravatar image

Jonathan Ben...
8.3k1785108

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:

×26
×9
×6
×3

question asked: 16 Sep '10, 13:26

question was seen: 9,130 times

last updated: 16 Sep '10, 20:14

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