-
Notifications
You must be signed in to change notification settings - Fork 281
-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Location Preference does not appear to be honored #198
Comments
Our location bias fosters results nearby but does not skip results that are far away. Exact matches (in this case with the french city Bois) are more important than partial matches (Boise). In the end the exact match overweights the benefit of the location bias and the french city appears first. if you type the entire name it works: http://photon.komoot.de/api/?q=boise&lat=45.52&lon=-122.6819 |
I find this problematic too. It might related to #193 |
Thank you for the reply. I agree with Peter. For our application, location On Fri, Oct 16, 2015 at 1:44 AM, Peter notifications@github.com wrote:
Dan Nichols |
Different uses cases require different location biases. I think it would make sense to have
|
maybe a new parameter like |
Or |
Alternatively, what about following nominatim's design (http://wiki.openstreetmap.org/wiki/Nominatim#Parameters) that doesn't use lat,lng but instead uses |
any clue when this will be implemented? for us the location biasing is also much more important than exact matches. |
I have it on my list, but there is a lot of other stuff too ;-( Can you help out? |
Hello, I just stumbled across this issue and I am wondering if ElasticSearch function scoring would help here, adding more weight to result that are close to a specified location |
@stephane-bastian it could based on the distance and few other parameters. |
Hi Has this been implemented? |
This should work now with #254 |
Nope, that doesn't seem to be working after #254. http://photon.komoot.de/api/?q=bois&lat=45.52&lon=-122.6819 doesn't return Boise, Idaho (not even with {
"message": "unknown query parameter 'location_bias_scale'. Allowed parameters are: [q, limit, distance_sort, osm_tag, lon, lang, lat]"
} #254 was definitely deployed to photon.komoot.de (according to #295). Was |
+1 |
With #580 the example returns Boise in Oregon as expected. |
Addressed in #580. |
I am evaluating photon for use as an open source alternative and am not seeing the results I would expect with location biasing for a geocode request. The URL is passing in a latitude/longitude centered on Portland Oregon USA. When I enter a query such as 'bois', I would expect the results to include Boise, Idaho (which is nearby) to appear in the search results, but instead am receiving results from around the globe. Being new to this library, I could be doing something incorrectly.
The URL I am passing in is: http://photon.komoot.de/api/?q=bois&lat=45.52&lon=-122.6819
The text was updated successfully, but these errors were encountered: