GeoNames Home
|
Postal Codes
|
Download / Webservice
|
About
GeoNames Forum
Search
Recent Topics
Back to home page
Register
/
Login
Reverse geocode continent based on country code
Forum Index
->
General
Author
Message
28/01/2013 20:44:09
Subject:
Reverse geocode continent based on country code
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
29/01/2013 07:54:02
Subject:
Re:Reverse geocode continent based on country code
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
29/01/2013 20:02:00
Subject:
Re:Reverse geocode continent based on country code
cboakes
Joined: 28/01/2013 16:24:59
Messages: 2
Offline
Thank you very much!
Forum Index
->
General
Go to:
Select a forum
Forum in English
-------------
General
Administrative Divisions
FAQ - frequently asked questions
Postal Codes
Discussion of GeoNames Toponyms
Forum in other language
-------------
Forum in Deutsch
Powered by
JForum 2.1.5
©
JForum Team
info@geonames.org
GeoNames Home
Postal Codes
Download / Webservice
Forum
About