[OSM-dev] Nominatim results when limit=1

Brian Quinion openstreetmap at brian.quinion.co.uk
Tue Sep 11 14:40:29 BST 2012


> 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...

I see the problem - the new code from removing duplicate places occurs
too late in the process after the limit has already been applied.

Should be an easy fix, I'll get it done and released.

Thanks,
--
 Brian



More information about the dev mailing list