NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hello,

We have installed a fresh instance of Nominatim using docker by following the installation steps from https://nominatim.org/release-docs/develop/admin/Installation/ . I doubled checked multiple times for everything to be up-to-date. TIGER data is also up to date.

Unfortunately, we have observed some differences between what our server returns and what the public Nominatim platform shows by using the same search parameters.

Here are the search parameters: street=520+Madison+Avenue&city=new+york&state=ny&postalcode=10022

Local url: http://142.132.128.187:8080/search.php?street=520+Madison+Avenue&city=new+york&state=ny&postalcode=10022&format=jsonv2 Public url: https://nominatim.openstreetmap.org/search.php?street=520+Madison+Avenue&city=new+york&state=ny&postalcode=10022&format=jsonv2

Our response:

[

{ "place_id": 136458099, "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright", "osm_type": "way", "osm_id": 266010397, "boundingbox": [ "40.7599002", "40.760584", "-73.9748887", "-73.9740315" ], "lat": "40.76022135", "lon": "-73.97442525051773", "display_name": "520 Madison Avenue, 520, Madison Avenue, Midtown East, Manhattan Community Board 5, Manhattan, New York County, New York, 10037, United States", "place_rank": 30, "category": "place", "type": "house", "importance": 0.511 } ]

Web response:

[ { "place_id": 294697572, "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright", "osm_type": "way", "osm_id": 420281339, "boundingbox": [ "40.760019333333", "40.760119333333", "-73.974156111111", "-73.974056111111" ], "lat": "40.76006933333333", "lon": "-73.97410611111111", "display_name": "520, Madison Avenue, Midtown East, Manhattan Community Board 5, New York County, New York, 10022, United States", "place_rank": 30, "category": "place", "type": "house", "importance": 0.621 }, { "place_id": 303958173, "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright", "osm_type": "way", "osm_id": 669246310, "boundingbox": [ "42.654086064516", "42.654186064516", "-73.770921322581", "-73.770821322581" ], "lat": "42.65413606451613", "lon": "-73.77087132258065", "display_name": "520, Madison Avenue, Park South, Lark Street, City of Albany, Albany County, New York, 12208, United States", "place_rank": 30, "category": "place", "type": "house", "importance": 0.611 }, { "place_id": 167244054, "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright", "osm_type": "way", "osm_id": 266010397, "boundingbox": [ "40.7599002", "40.760584", "-73.9748887", "-73.9740315" ], "lat": "40.76022135", "lon": "-73.97442525051773", "display_name": "520 Madison Avenue, 520, Madison Avenue, Midtown East, Manhattan Community Board 5, New York County, New York, 10037, United States", "place_rank": 30, "category": "building", "type": "commercial", "importance": 0.511 }, { "place_id": 290349413, "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright", "osm_type": "way", "osm_id": 24137660, "boundingbox": [ "40.751863186047", "40.751963186047", "-73.588143813953", "-73.588043813953" ], "lat": "40.75191318604651", "lon": "-73.58809381395349", "display_name": "520, Madison Avenue, Westbury, Town of North Hempstead, Nassau County, New York, 11590, United States", "place_rank": 30, "category": "place", "type": "house", "importance": 0.511 }, { "place_id": 314875463, "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright", "osm_type": "way", "osm_id": 13087865, "boundingbox": [ "42.338065343744", "42.338165343744", "-77.67069690835", "-77.67059690835" ], "lat": "42.33811534374404", "lon": "-77.6706469083502", "display_name": "520, Madison Avenue, Town of Hornellsville, Steuben County, New York, 14843, United States", "place_rank": 30, "category": "place", "type": "house", "importance": 0.511 }, { "place_id": 290421264, "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright", "osm_type": "way", "osm_id": 24137656, "boundingbox": [ "40.696777416667", "40.696877416667", "-73.657202972222", "-73.657102972222" ], "lat": "40.69682741666667", "lon": "-73.65715297222222", "display_name": "520, Madison Avenue, West Hempstead, Franklin Square, Town of Hempstead, Nassau County, New York, 11552, United States", "place_rank": 30, "category": "place", "type": "house", "importance": 0.511 }, { "place_id": 290418110, "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright", "osm_type": "way", "osm_id": 24137653, "boundingbox": [ "40.674544554217", "40.674644554217", "-73.618284759036", "-73.618184759036" ], "lat": "40.67459455421687", "lon": "-73.61823475903616", "display_name": "520, Madison Avenue, South Hempstead, Baldwin, Town of Hempstead, Nassau County, New York, 11510, United States", "place_rank": 30, "category": "place", "type": "house", "importance": 0.511 }, { "place_id": 314323208, "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright", "osm_type": "way", "osm_id": 20255741, "boundingbox": [ "41.103991788222", "41.104091788222", "-72.366563786757", "-72.366463786757" ], "lat": "41.104041788222084", "lon": "-72.36651378675711", "display_name": "520, Madison Avenue, Greenport, Town of Southold, Suffolk County, New York, 11944, United States", "place_rank": 30, "category": "place", "type": "house", "importance": 0.511 }, { "place_id": 306011336, "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright", "osm_type": "way", "osm_id": 12320838, "boundingbox": [ "42.626001035714", "42.626101035714", "-79.071002642857", "-79.070902642857" ], "lat": "42.62605103571429", "lon": "-79.07095264285714", "display_name": "520, Madison Avenue, Lake Erie Beach, Town of Evans, Erie County, New York, 14006, United States", "place_rank": 30, "category": "place", "type": "house", "importance": 0.511 }, { "place_id": 314388006, "licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright", "osm_type": "way", "osm_id": 20255732, "boundingbox": [ "40.804359755102", "40.804459755102", "-73.254504265306", "-73.254404265306" ], "lat": "40.804409755102036", "lon": "-73.25445426530612", "display_name": "520, Madison Avenue, Brentwood, Suffolk County, New York, 11717, United States", "place_rank": 30, "category": "place", "type": "house", "importance": 0.511 } ]

Could you please help us identify what is the root cause of this behavior?

Many thanks!

asked 09 May '22, 08:53

radu_ncht's gravatar image

radu_ncht
11112
accept rate: 0%


You are not running the same software version of Nominatim and you are using different data. Differences are to be expected.

The public servers at https://nominatim.openstreetmap.org are on a rolling release of the latest development version of Nominatim and are updated with minutely diffs. It is not possible to set up a local instance that is in exactly the same state.

permanent link

answered 09 May '22, 09:20

lonvia's gravatar image

lonvia
6.2k25789
accept rate: 40%

We understand that may be a slight difference between a local environment and the public servers. The issue in hand is that the difference is way too obvious, given the large difference in the number of responses obtained using both versions.

As we stated earlier we are running with the latest data and software version, here are some information on that: - PBF_URL: https://ftp5.gwdg.de/pub/misc/openstreetmap/planet.openstreetmap.org/pbf/planet-latest.osm.pbf - REPLICATION_URL: https://ftp5.gwdg.de/pub/misc/openstreetmap/planet.openstreetmap.org/replication/day/ - PostgreSQL 12.9 (Ubuntu 12.9-0ubuntu0.20.04.1) - ENV NOMINATIM_VERSION 4.0.1

We also went ahead and installed all the auxiliary data sources according to https://nominatim.org/release-docs/latest/develop/data-sources/ .

Is there anything left to be installed/configured to be somewhat inline with the public servers ?

(10 May '22, 09:54) radu_ncht

You can try reimporting with NOMINATIM_TOKENIZER=icu. It may or may not help. Depends on what your exact issue with the search results is. As it stands, the result on your server seems to be the more correct one.

(10 May '22, 10:50) lonvia

Thank you for your answer Ionvia, we have already imported with "ICU" tokenizer.

Is there any difference in the search logic between a local instance and the public servers ?

(12 May '22, 09:02) radu_ncht

Hello, you can use debug mode of Nominatim search request. Just add debug=1 parameter to both of your queries and compare the explanation of their processing, even with SQL queries to the DB.

permanent link

answered 29 Mar '23, 15:44

Cepslart's gravatar image

Cepslart
1
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×689
×123
×28
×10

question asked: 09 May '22, 08:53

question was seen: 1,587 times

last updated: 29 Mar '23, 15:44

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum