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

Hello guys !

Here's my problem. In my app, I want people to add the countries they have visited. Then, an OSM map (I'm using OpenLayers) would be displayed using all those countries, with markers on them (ideally, only the countries they've visited would appear, but I don't think it's possible).

So, my question is:
Is their a way to use a country name to add a marker ?
If not, how can I get the lat/lon from the country ?
I know of the nominatim, but you have to provide a city so that it works ( http://nominatim.openstreetmap.org/search.php?country=England&format=json doesn't work for example). Is there a way to automatically get the capital (or any city for that matter) so I can retrieve the coordinates ?

Thanks a lot guys !

asked 20 Jul '13, 21:21

kilik2049's gravatar image

kilik2049
56225
accept rate: 0%

edited 20 Jul '13, 21:22

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:

×98
×58

question asked: 20 Jul '13, 21:21

question was seen: 2,974 times

last updated: 20 Jul '13, 21:22

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