GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
q / name / name_startsWith -- what about name_contains?  XML
Forum Index -> General
Author Message
honestbleeps



Joined: 18/08/2009 06:04:53
Messages: 3
Offline

I'm new to using this service, and wow is it awesome! I have been unable to figure a couple of things out though...

First of all, the basic search API appears to be an exact name or token match only... for example: search?q=chica does not return Chicago, but it does return "Loma Chica Colonia" and one other result.

Same thing if I use name= ...

It appears that name_startsWith works, even though it's undocumented in the regular search. (I saw it in the geocode specific search, and tried it)... This is great!

However, I really wish I could also search name_contains -- so that a search for "chica" would return "Chicago" and other cities, in addition to the 2 that the current query returns.

Does something like this exist?
marc



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

I remember we had once discussed a 'name_contains' service, but it has not been implemented.

Marc

[WWW]
honestbleeps



Joined: 18/08/2009 06:04:53
Messages: 3
Offline

Well, consider this my vote for name_contains.
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team