GithubHelp home page GithubHelp logo

peter-evans / nominatim-docker Goto Github PK

View Code? Open in Web Editor NEW
30.0 5.0 16.0 65 KB

Docker image for Nominatim

Home Page: https://hub.docker.com/r/peterevans/nominatim/

License: MIT License

Shell 29.59% PHP 3.87% Dockerfile 66.54%
nominatim docker-image pbf nominatim-docker geocoding reverse-geocoding

nominatim-docker's Introduction

nominatim-docker

CI

Docker image for Nominatim, an open source tool to search OpenStreetMap data by name and address (geocoding) and to generate synthetic addresses of OSM points (reverse geocoding).

Supported tags and respective Dockerfile links

Usage

Pass the NOMINATIM_PBF_URL environment variable to the container referencing the URL of your PBF file:

docker run -d -p 8080:8080 \
-e NOMINATIM_PBF_URL='http://download.geofabrik.de/asia/maldives-latest.osm.pbf' \
--name nominatim peterevans/nominatim:latest

The PBF file will be downloaded and the database will begin building. Note that very large databases may take hours to be built.

Tail the logs to verify the database has been built and Apache is serving requests:

docker logs -f <CONTAINER ID>

Then point your web browser to http://localhost:8080/

For documentation see https://wiki.openstreetmap.org/wiki/Nominatim

Persistent Storage

For a solution to persisting the database and immutable deployments check out Nominatim for Kubernetes.

License

MIT License - see the LICENSE file for details

nominatim-docker's People

Contributors

joshuajackson-jobvite avatar medokin avatar peter-evans avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nominatim-docker's Issues

does not take PBG URL other than http://download.geofabrik.de

I am trying to install planet osm database. It does not take any other url other than one from http://download.geofabrik.de.
I get following error
sudo docker run -d -p 8080:8080 -e NOMINATIM_PBF_URL='https://planet.openstreetmap.org/pbf/planet-latest.osm.pbf' --name nominatim peterevans/nominatim:latest

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (77) Problem with the SSL CA cert (path? access rights?)
 * Starting PostgreSQL 9.5 database server
   ...done.
NOTICE:  database "nominatim" does not exist, skipping

Thanks.

How to filter for only administrative_data?

My use case is that I need to forward-geocode unstructured addresses so I can acquire its components: city, state and country. Is there a way to filter the data feeds so that it only includes administrative boundaries given that I don't need a full geodatabase?

A few questions

I am sorry that I am probably asking a beginner level questions, but

  • is there a way to see the output of the building session ?
  • is there a way to know that the build is completed ?
  • is it using all possible processors of the computer and if not - how to change that ?

It just do nothing

Hello. I've installed the image
with docker pull peterevans/nominatim
then I have executed
docker run -d -p 8080:8080 -e NOMINATIM_PBF_URL='http://download.geofabrik.de/europe-latest.osm.pbf' --name nominatim peterevans/nominatim:latest

but seems like nothing happens. I got nothing on localhost:8080, nor it seems that anything is downloading since there is no network activity.

Please help.

Add support for remote Postgres databases

Add support for remote Postgres database via environment variables. The environment variables would need to set CONST_Database_DSN in local.php.

@define('CONST_Database_DSN', 'pgsql://@/nominatim'); // <driver>://<username>:<password>@<host>:<port>/<database>

Full list of defaults for Nominatim's settings here.

Would also need an environment variable flag to disable/enable building a new graph in docker-entrypoint.sh.

Error when trying start with germany or europe

30.8.2018 12:02:15 * Starting PostgreSQL 9.3 database server        
[ OK ]
30.8.2018 12:02:16NOTICE:  database "nominatim" does not exist, skipping
30.8.2018 12:02:16DROP DATABASE
30.8.2018 12:02:162018-08-30 10:02:16 == module path: /srv/nominatim/build/module
30.8.2018 12:02:162018-08-30 10:02:16 == Create DB
30.8.2018 12:02:262018-08-30 10:02:26 == Setup DB
30.8.2018 12:02:26Postgres version found: 9.3
30.8.2018 12:02:27Postgis version found: 2.1
30.8.2018 12:02:27Error: you need to download the country_osm_grid first:
30.8.2018 12:02:27    wget -O /srv/nominatim/data/country_osm_grid.sql.gz https://www.nominatim.org/data/country_grid.sql.gz

Internal Error : no DB connection

hello,

i have just installed nominatim-docker, everything goes well, but when trying to access the web service i have this message on my browser:

Internal Server Error
Nominatim has encountered an internal error while accessing the database. This may happen because the database is broken or because of a bug in the software. If you think it is a bug, feel free to report it over on Github. Please include the URL that caused the problem and the complete error details below.

Message: Failed to establish database connection

SQL Error: DB Error: connect failed

Details:

[nativecode=pg_connect(): Unable to connect to PostgreSQL server: FATAL: database "nominatim" does not exist] ** pgsql://@/nominatim

let the force be with you

Allow persistence volume for Nominatim data

It would be nice (if it is not yet possible) to specify an external volume, where all Postgre + Nominatim data can be persisted, so that after restart of the container it does not take days to recreate the database and start the Nominatim service (which happens when user wants to use bigger data, such as Europe: https://download.geofabrik.de/europe-latest.osm.pbf). If it is or when it is possible, it would be nice to see entry in README on how to do it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.