GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Reverse geocode continent based on country code  XML
Forum Index -> General
Author Message
cboakes



Joined: 28/01/2013 16:24:59
Messages: 2
Offline

Hi there,

I was wondering if anyone is able to help me with the following query.

I'm trying to reverse geocode from lat/lng right up to continent level. To get the country code I'm using:

http://api.geonames.org/countryCodeJSON?lat=LAT&lng=LNG&username=demo

Is there anything I can use to do the same for continent (even if it's using the country code)?

Any help would be greatly appreciated.

Many thanks,

Chris
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

If the country granularity is sufficient for you then you can read the country to continent relation from the download file or in xml format from the web service:

File in csv format:
http://download.geonames.org/export/dump/countryInfo.txt

xml web service:
http://api.geonames.org/countryInfo?username=xxx&style=full

json web service:
http://api.geonames.org/countryInfoJSON?username=xxx&style=full

[WWW]
cboakes



Joined: 28/01/2013 16:24:59
Messages: 2
Offline

Thank you very much!
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team