GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
fuzzy search  XML
Forum Index -> FAQ - frequently asked questions
Author Message
adamsargant



Joined: 16/02/2007 20:15:01
Messages: 2
Offline

What a resource... I am humbled and impressed

I have one query... I'm trying to build an application around the database which involves the fuzzy search (I'm building a CO2 emissions calculator which works out distance travelled between two locations, and I want to populate a pull down options list with likely candidates based upon the users entry... you can see a very unattractive test version at http://www.sargant.net/carboncalculator/calculator1.php )... when I do a search such as

http://ws.geonames.org/search?q=Leeds&maxRows=100&fuzzy=0.8&style=FULL&fclass=P

it is fine, but as soon as I try

http://ws.geonames.org/search?name=Leeds&maxRows=100&fuzzy=0.8&style=FULL&fclass=P

the XML that is returned does not contain any data. Any ideas?
marc



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

There is something counter-intuitive here. The fuzzy search only works with the q parameter but searches only for a fuzzy name. So it is better to only use the q parameter and forget about the name parameter for the moment.

Marc

[WWW]
adamsargant



Joined: 16/02/2007 20:15:01
Messages: 2
Offline

Cool... the results are fine anyway Thanks
lasse_larsson



Joined: 07/05/2007 21:03:40
Messages: 1
Offline

I really like your Fyzzy search, you wrote somewhere It is a Levenshtein distance method. Which function do you use? Part of postgres?

/Anders
marc



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

Hi Anders

The search including fuzzy search is using Lucene : http://lucene.apache.org/

Cheers

Marc

[WWW]
 
Forum Index -> FAQ - frequently asked questions
Go to:   
Powered by JForum 2.1.5 © JForum Team