GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
extract location information from search query  XML
Forum Index -> FAQ - frequently asked questions
Author Message
jlogan



Joined: 15/06/2013 07:59:21
Messages: 1
Offline

Hi,
I am developing a search application. I would like to extract words that represent address/location information in the search query.

For e.g : "ranch style home sunnyvale california"

should result in
1)
search : "ranch style home"
city : sunnyvale,
state : california
country : US


2)
search keywords : "ranch style home"
location keywords : "california sunnyvale"

How does one go about this?

I appreciate any pointers/advice.

Thanks,
/jlogan
blackmad



Joined: 05/09/2012 17:29:06
Messages: 14
Offline

twofishes doesn't do a perfect job with this, I need to write some more logic to blacklist common english terms, but in the common case, it works okay:

http://demo.twofishes.net/static/geocoder.html#ranch+style+home+sunnyvale+california
http://demo.twofishes.net/?query=ranch+style+home+sunnyvale+california&responseIncludes=PARENTS

the index and server are downloadable at twofishes.net

let me know if you have any interest in the project or find it useful!

Thanks,
David
 
Forum Index -> FAQ - frequently asked questions
Go to:   
Powered by JForum 2.1.5 © JForum Team