/gis-to-go

Simple GIS environment to setup some open source GIS tools locally, to run standalone

Primary LanguageShellMIT LicenseMIT

GIS-to-go

Simple standalone GIS environment to setup some open source GIS tools locally:

  • MapTiler: to serve vector tiles.
  • Nominatim: Open-source geocoding with OSM data, for querying the maps to find a locations.
  • Valhalla: Valhalla is an open source routing engine.

Preparation

cp ./example.env ./.env
./initialize.sh
  • Copy the example.env to .env and edit the area that you want to process. For example, use COUNTRIES="netherlands belgium germany" to generate a single map covering these three countries. By default, just Monaco is used. Just make sure that the name matches with the name using in GeoFabrik, since the OSM data is downloaded from there.
  • Run ./initialize.sh: it will prepare the volumes for the map tiles, fill Nominatim's PostgreSQL database, and prepare the Valhalla data.

Running the setup

To start the docker compose setup, run:

./start.sh

It runs the following services:

curl -s -XPOST 'http://localhost/valhalla/route' -H 'Content-Type: application/json' --data-raw '{
    "locations": [
        {
            "lat": 43.75015478650435,
            "lon": 7.438245208691164
        },
        {
            "lat": 43.739998742831155,
            "lon": 7.42614130733486
        }
    ],
    "costing": "auto"
}'
  • NOMINATIM API, e.g. test curl http://localhost/nominatim/search?q=Monaco&format=json&addressdetails=1&limit=1&polygon_svg=1 if the Monaco database is loaded.