GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Lookup literal Admin area from country code and area code  XML
Forum Index -> Administrative Divisions
Author Message
zac_jh



Joined: 02/07/2013 23:00:40
Messages: 1
Offline

I've looked through the available functions but cannot find a function to do this. Can some-one point me in the right direction?

I want to look up the Administration area literal text (State, province, county name etc) from the ISO2 country code and GeoNames Admin1Code.

Something like:

getAdminLit ( 'US', 'AK' ) which would return Alaska.


marc



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

http://api.geonames.org/search?q=us,ak,adm1&maxRows=10&username=demo

or more explicit

http://api.geonames.org/search?q=ak&maxRows=10&username=demo&country=us&featurecode=ADM1

[WWW]
 
Forum Index -> Administrative Divisions
Go to:   
Powered by JForum 2.1.5 © JForum Team