GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Only State Lookup  XML
Forum Index -> General
Author Message
rbwebservices



Joined: 31/08/2012 11:32:37
Messages: 1
Offline

Hello,

As we have City, State, Country auto-complete API here on geonames, does anyone know if I can also have a state auto-complete API as well?

Like in case of city, when you start typing you can get all the cities in the world with respect to typed in letter, similarly I am looking for State and Country pair.

Can anyone help?

The city auto-complete example for your quick reference is here - http://jqueryui.com/demos/autocomplete/#remote-jsonp


Please Help
Rohit
marc



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

The example query is using setting the search parameter featureClass=P (which stands for 'populated place'). In order to search for administrative divisions like countries and states you have to change this parameter to featureClass=A.

Marc

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