GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Trying to use the api for revergeocoding and autocompleting on country,city, state, zip  XML
Forum Index -> General
Author Message
trustyoo



Joined: 06/06/2015 07:28:48
Messages: 1
Offline

My goal is to use the search api to retrieve city, country, state and zip in a manner where the user could be typing a zipcode or a city name in the box. Am guessing I need to merge the results from the postalcodeSearch and regular search? Or is it doable in a single API call?

The second part of this question is for reverse geocoding is it possible to get state and zip in the results? Right now I only get city and coutry.

Last thing - for the search API I also don't get state in the results - is it possible?
omar.nieto



Joined: 08/04/2014 12:13:52
Messages: 3
Offline

if you want to use the search API, you can request one service or another depends on the client input on your application; but this is not very efficient. For the functions you comment, I recommend you downloading the countries files that you need and make a autocomplete function with these data. Otherwise you will always have a limitation.
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team