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?
|