GeoNames Home
|
Postal Codes
|
Download / Webservice
|
About
GeoNames Forum
Search
Recent Topics
Back to home page
Register
/
Login
extract location information from search query
Forum Index
->
FAQ - frequently asked questions
Author
Message
17/06/2013 08:14:31
Subject:
extract location information from search query
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
24/11/2013 11:33:05
Subject:
extract location information from search query
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:
Select a forum
Forum in English
-------------
General
Administrative Divisions
FAQ - frequently asked questions
Postal Codes
Discussion of GeoNames Toponyms
Forum in other language
-------------
Forum in Deutsch
Powered by
JForum 2.1.5
©
JForum Team
info@geonames.org
GeoNames Home
Postal Codes
Download / Webservice
Forum
About