GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Getting admin2 code and name using JSON Autocomplete postalcodeLookup  XML
Forum Index -> FAQ - frequently asked questions
Author Message
decio69



Joined: 24/01/2010 10:28:17
Messages: 2
Offline

I have successfully used the autocomplete to get the alternative placeNames from zip codes in italy: give the country and zipcode and you get alternative placeNames.

However, admin2 codes and names (county, or in italian "provincia") are key to well-formed addresses-

I cannot figure out which other parameters to pass to the function to also get the admin2 Code and Name. Is this something I can manage by passing extra parameters to the JSON query or is there some return variable which holds admin2 info which I am overlooking?

If the objective is to have a form that can narrow down country/county/city from a zip code, is there some other way to do this via JSON or XML?

Thanks
D.
marc



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

The adm2 info was missing from the json response. It is now available, together with adm3.

Best

Marc

[WWW]
decio69



Joined: 24/01/2010 10:28:17
Messages: 2
Offline

Hi Mark,

Great!

I can access the adminCode2 directly as a varible returned by JSON after the postalcode value is sent. Thanks a lot

 
Forum Index -> FAQ - frequently asked questions
Go to:   
Powered by JForum 2.1.5 © JForum Team