janoskaz
Joined: 23/09/2013 16:16:27
Messages: 1
Offline
|
Hi,
I have a web crawler, which goes through users of some web service and based on their self-reported adresses tries to determine their location.
I always take the first returned result as the most relevant, but sometimes the results are incorrect.
i.e. for "San Francisco, CA"
http://api.geonames.org/search?q=san+francisco+ca&maxRows=10&username=<USERNAME>
San Francisco in USA is returned (CORRECT)
for "San Francisco"
http://api.geonames.org/search?q=san+francisco&maxRows=10&username=<USERNAME>
San Francisco in Costa Rica is returned (INCORRECT)
if I use countryBias=us, the results for "San Francisco" are CORRECT,
but results for "Paris" are INCORRECT (Paris in USA is returned)
http://api.geonames.org/search?q=paris&countryBias=us&maxRows=10&username=<USERNAME>
If I use countryBias with more countries (countryBias=us+fr) , it does not work
http://api.geonames.org/search?q=san+francisco&countryBias=us+fr&maxRows=10&username=<USERNAME>
What I would like, is to have returned records sorted by population - therefore San Francisco,USA would be first, and also Paris,FR would be first
Is that possible?
|