GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
adminCode2 in GB  XML
Forum Index -> Postal Codes
Author Message
dakar


[Avatar]

Joined: 14/03/2017 13:50:03
Messages: 8
Offline

Hi,

http://api.geonames.org/postalCodeLookupJSON?username=demo&style=full&postalcode=EX1%201AE&country=gb&formatted=true
{"postalcodes": [{
"adminCode2": "E10000008",
"adminCode3": "E07000041",
"adminName3": "Exeter District (B)",
"adminCode1": "ENG",
"adminName2": "Devon County",
"lng": -3.5318667259934857,
"countryCode": "GB",
"postalcode": "EX1 1AE",
"adminName1": "England",
"placeName": "St. David's Ward",
"lat": 50.722791878157295
}]}

http://api.geonames.org/postalCodeLookupJSON?username=lpfgest&style=full&postalcode=NW6&country=gb&formatted=true
{"postalcodes": [
{
"adminCode2": "", <------------------------------------------- Empty!
"adminCode3": "E09000007",
"adminName3": "Camden London Boro",
"adminCode1": "ENG",
"lng": -0.1932812799710959,
"countryCode": "GB",
"postalcode": "NW6 1AA",
"adminName1": "England",
"placeName": "Fortune Green Ward",
"lat": 51.55242223813865
},
...

and don't appairs adminName2 (in all the places returned by at least this api call)

Tx!
 
Forum Index -> Postal Codes
Go to:   
Powered by JForum 2.1.5 © JForum Team