Qwant / fafnir

Import Qwant Maps POIs from PostgreSQL to Mímirsbrunn Elasticsearch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CI status Docker Pulls GitHub license

Fafnir

  • Rust tool to import imposm points-of-interest from a PostgreSQL database into a Mímirsbrunn Elasticsearch.
  • You can run fafnir either manually or with docker.

Getting Started

  • First build fafnir with Cargo:

    cargo build --release
  • Then you can run fafnir (with the connections to postgres and elasticsearch):

    cargo run --release --bin openmaptiles2mimir -- --config-dir ./config -s 'elasticsearch.url="http://<es-IP>:9200"' -s 'fafnir.postgres="postgresql://<pg-IP>:5432"'

You can learn more about settings structure in src/config and mimirsbrunn's documentation.

Run with docker 🐳

  • Fafnir can be used with docker as well.

  • You can either use the fafnir docker image

  • Or build your own image with this repo:

    DOCKER_BUILDKIT=1 docker build . -t fafnir

Tests

  • You can run the tests than come along fafnir directly with cargo:

    cargo test
  • For a live test, you can import a small postgres database from the ile-de-france points-of-interest directly from this docker image:

    docker pull qwantresearch/postgres_poi_idf

About

Import Qwant Maps POIs from PostgreSQL to Mímirsbrunn Elasticsearch

License:Apache License 2.0


Languages

Language:Rust 91.9%Language:PLpgSQL 7.0%Language:Dockerfile 1.1%