GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
How to get the ISO code of adminCode2, when i use 'http://api.geonames.org/countrySubdivision?'  XML
Forum Index -> General
Author Message
pollyed



Joined: 09/06/2014 07:08:27
Messages: 1
Offline

http://api.geonames.org/countrySubdivision?username=demo&lat=60.33333&lng=-1.33333&level=2

its result is
<geonames>
<countrySubdivision>
<countryCode>GB</countryCode>
<countryName>United Kingdom</countryName>
<adminCode1>SCT</adminCode1>
<adminName1>Scotland</adminName1>
<code type="ISO3166-2">SCT</code>
<adminCode2>W3</adminCode2>
<adminName2>Shetland</adminName2>
<distance>0.0</distance>
</countrySubdivision>
</geonames>

Now W3(fips/gn) is adminCode2. How to get its ISO code - ZET?
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team