[OSM-dev] Configurable number of results in Nominatim ?
openstreetmap at brian.quinion.co.uk
Thu Dec 24 11:58:13 GMT 2009
On Wed, Dec 23, 2009 at 6:32 PM, Thomas Petazzoni
<thomas.petazzoni at enix.org> wrote:
> However, the current version of Nominatim limits the number of results
> to 10. While this makes perfect sense for the Web application, it isn't
> really pratical for the XML export.
For a lot of purposes the limit is fine even with xml or json - it
gives back the (up to) 10 mostly likely matches. Perhaps if you could
give a use case to explain why you would like this limit removed I
could suggest other options.
> Is it possible to add support for a &limit=XX argument, where XX is the
> number of results required, with 0 being a special value removing the
> limit ?
The limit of 10 items is not a display choice but a performance
choice. It is there to prevent a single query for using too much
resources and blocking usage by other people and to the ensure that
the response is returned in a reasonable time.
Have you investigated the possibility of using the more_url ? This
already allows you to obtain the next batch of 10.
More information about the dev