Order results by distance to specified location #2519
Comments
Author: twain
I've added an option to order by distance (within matching results). To use add nearlat=[lat]&nearlon=[lon] to the url. I'd be be grateful for feedback on whether this meets you requirements. |
Author: kieran.fleming[at]gmail.com It definitely meets the requirement of finding the closest pub, restaurant etc but it's not perfect for searching for specific places as it seems to be limited to a certain distance away. Here's my example: If I'm in Canberra and do a search for 'Melbourne', both Melbourne Avenue, Canberra and the actual city of Melbourne should be in the results. In this case Melbourne Avenue is important because it is nearby and Melbourne is important because it is a perfect match and also because it is a large city. In contrast, Melbourne Street, North Adelaide is not useful because it's far away, not a great match and is only a street: Sorry, I should've made it more clear when I put the issue in. Anyway, I hope this doesn't scare you off :) |
Author: twain Thanks for the example. I'm afraid this isn't likely to get resolved particularly quickly but is something that I'm already working on for the next version of the search. I would expect that this will probably be released some time in the new year. |
Author: kieran.fleming[at]gmail.com The nearlat and nearlon parameters don't work anymore: |
Author: lonvia nearlat/nearlon will not be supported again. The query can now be simply formulated as 'atm near 37.42201, -122.0841'. |
Reporter: kieran.fleming[at]gmail.com
[Submitted to the original trac issue database at 6.53am, Sunday, 29th November 2009]
This is about me thinking about how nominatim can benefit opensatnav (http://www.opensatnav.org) but can also definitely benefit others.
Restricting results into a bounding box doesn't really satisfy the needs of sat-nav users. What they really want is for results to be biased towards locations close to them.
For example, if the user searches for 'pub' it should return pubs in the order of distance away. If they search for 'North St' it should return results taking into account both the accuracy of the match and the distance away.
At the moment we are using OSM namefinder and it will order the results only by distance so while the first results are really close to the user they aren't a close enough match to what the user wanted.
The text was updated successfully, but these errors were encountered: