GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Can't get a Country list using name_startsWith?  XML
Forum Index -> General
Author Message
chawkins



Joined: 21/04/2015 18:29:22
Messages: 1
Offline

I'm trying to figure out how to do an autocomplete country list. Problem is, the "name_startsWith" parameter doesn't seem to work with the actual country list:

http://api.geonames.org/countryInfoJSON?username=demo&name_startsWith=f

So instead, I tried this:

http://api.geonames.org/searchJSON?username=demo&name_startsWith=f

This time, the name_startsWith parameter worked fine...but those results don't seem to be limited to countries.

This can't possibly be that hard. I've seen country list implementations using hard-coded lists, surely it's possible to do the same against the GeoNames API?

What am I not seeing?
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team