[OSM-dev] Nominatim results when limit=1
Jason Lee
jaslee.st at gmail.com
Tue Sep 11 14:16:35 BST 2012
Hello,
I have a service setup using the OSM Nominatim service and I have a query
on number of results returned with the "limit=" parameter. I have it set as
1 to only get the top result BUT when I search for "San Francisco" or
"Boston" (where countrycodes=us) I surprisingly got no results? I change
this to limit=2 and limit=3 and see that I get 1 and 2 results respectively
- which seems offset to me...
http://nominatim.openstreetmap.org/search?q=San+Francisco&format=json&limit=1&json_callback=geocodeResult&countrycodes=us
http://nominatim.openstreetmap.org/search?q=San+Francisco&format=json&limit=2&json_callback=geocodeResult&countrycodes=us
http://nominatim.openstreetmap.org/search?q=San+Francisco&format=json&limit=3&json_callback=geocodeResult&countrycodes=us
...on the other hand, searching for "Chicago" for limit=1 then 2 then 3, I
get the expected number of results...
http://nominatim.openstreetmap.org/search?q=Chicago&format=json&limit=1&json_callback=geocodeResult&countrycodes=us<http://nominatim.openstreetmap.org/search?q=Chicago&format=json&limit=2&json_callback=geocodeResult&countrycodes=us>
http://nominatim.openstreetmap.org/search?q=Chicago&format=json&limit=2&json_callback=geocodeResult&countrycodes=us
http://nominatim.openstreetmap.org/search?q=Chicago&format=json&limit=3&json_callback=geocodeResult&countrycodes=us<http://nominatim.openstreetmap.org/search?q=Chicago&format=json&limit=2&json_callback=geocodeResult&countrycodes=us>
Is there a bug here or something I am not understanding?
Any advice much appreciated.
Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20120911/c8ca277a/attachment.html>
More information about the dev
mailing list