[Geocoding] Different result in local nominatim instance and official instance

Bartosz Kwapisz kwapisz.bartosz at gmail.com
Wed Oct 28 15:21:52 UTC 2020


I had the same result when I used 3.4.2, 3.5.2 and the master version.
That's why I thought the problem was in data.
We run nominatim in container environment, so we are using this
configuration (without any changes) -
https://github.com/mediagis/nominatim-docker/tree/master/3.5
You can find local.php file here -
https://github.com/mediagis/nominatim-docker/blob/master/3.5/local.php
That postgres and postgis packages are installed (in Dockerfile) -
postgresql-server-dev-12 postgresql-12-postgis-3 postgresql-contrib
postgresql-12-postgis-3-scripts \

I've pulled docker image based on nominatim master version that we are
using now to Docker Hub registry -
https://hub.docker.com/repository/docker/bartoliniii/nominatim

Tu run import we run the following sequence of commands:
apt-get -y update -qq
apt-get install -y wget
wget -q https://www.nominatim.org/data/wikipedia_article.sql.bin -O
/app/src/data/wikipedia_article.sql.bin
wget -q https://www.nominatim.org/data/wikipedia_redirect.sql.bin -O
/app/src/data/wikipedia_redirect.sql.bin
rm -rf /data/nominatim/postgresdata_updated2 && chmod u+x /app/init.sh
/app/init.sh /data-osm/osm-pbf/poland-latest.osm.pbf nominatim/postgresdata
12



śr., 28 paź 2020 o 15:50 Sarah Hoffmann <lonvia at denofr.de> napisał(a):

> On Wed, Oct 28, 2020 at 02:51:43PM +0100, Bartosz Kwapisz wrote:
> > > You cannot expect the same results for your installation
> > > as on the nominatim.openstreetmap website. The OSM server runs
> > > always the latest version of Nominatim together with continuous
> > > data update. That means that the data you see is indexed with
> > > the Nominatim version that was current at the time it was last
> > > touched.
> > >
> > Yes of course, but I tried to use different data sources of pbf files and
> > the result is still the same.
> > Is there any way to use exactly the same data source (pbf) as is used by
> an
> > official site?
> > Do you know what data is used by official nominatim?
>
> You are using exactly the same data. It's all OSM. That is not the issue
> here.
> The problem is that the data was imported in a slightly different way
> (partially via updates) and with many different versions of the software.
> There is absolutely no way that you can create an installation that
> has exactly the same state as nominatim.openstreetmap.org.
>
> > > Yes I have 'Słowik' in the database with the same osm_id.
> > As I mentioned before - there are more villages with the same problem.
> > That's why I assume that there has to be a configuration/data source
> > problem.
> >
> > Here is a link to Słownik entry -
> >
> https://nominatim.openstreetmap.org/ui/details.html?osmtype=N&osmid=31879464&class=place
> > And local one -
> https://nazwa.takeanddrive.eu/tmp/nominatim_local_slowik.png
>
> I've just downloaded today's Geofabrik extract of Lodz and imported it
> into Nominatim using 3.5.2 and the latest master version and I get for
> both:
>
> "Kręta, Słowik, gmina Zgierz, Zgierz County, Łódź Voivodeship, 95-100,
> Poland"
>
> I have not tried 3.4.2 which you mentioned in the issue tracker.
>
> There must be something unusual with your installation. What guide did
> you follow to set up the database? What OS, Postgresql and Postgis version
> do you run? What are your special settings in settings/local.php?
>
> Sarah
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/geocoding/attachments/20201028/0893b1e3/attachment.htm>


More information about the Geocoding mailing list