Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Yamap Ain't Map – deployment of OSM infrastructure project inspired by osm-seed

License

NotificationsYou must be signed in to change notification settings

Andygol/yamap

Repository files navigation

Yamap Ain't Map – deployment OSM infrastructure project, inspired by osm-seed.

The goals of the project are to create infrastructure to replicate data from OSM into regional extract and keep the extracted data up-to-date, and use data from the local extract for other local services.

The input data is stored in the DB, the same as the main OSM API DB.

From there, updates are sent to other local services, which in turn reduce the load on OSM servers.

Schema

flowchart TD    A[Planet OSM] -->|diffs| B(Local API DB\nwith regional\nextract)    B -->|regional extract| C[local diffs]    C --> D[fa:fa-search Search]    C --> E[fa:fa-database Overpass Turbo]    C --> F[fa:fa-car Routing]    C --> G[fa:fa-external-link Other services]
Loading

Data deployment and update

For now, next routines are implemented:

  • Database deployment
  • Populating the database with data from the extract
  • Receiving, aggregating, cutting the data by a bounding polygon from planet diffs

Usage

To initialize DB and populate it with the extract run

make init-db

To keep up with the upstream DB

make run

Usemake <target> to run a particular task.

Usage:  make <target>Run/Stop Services  run             Builds, (re)creates, starts containers for a service  start           Starts existing containers for a service  stop            Stops running containers without removing them  restart         Restarts all stopped and running servicesCleanup  destroy         Stop and remove containers, networks  clean-apidb     Cleaning of the mounted DB file system  clean-data      Cleaning the data folder except for the mounted DB file system  clean-db        TODO Cleaning up DB for fresh deploymentBuilding  rebuild         Build or rebuild services if you change a service’s Dockerfile  init-db         Init fresh DB and populate extract  debug           Start services in debug mode to run commands manuallyHelpers  list            List containers  images          List images used by the created containers  config          Parse, resolve and render compose file in canonical formatHelp  help            Display this help

Preparation

Specify path to the input data extract and path to*.poly filein thepopdb.env.

Replication interval and replication URI can be adjusted in therepapidb.env.

About

Yamap Ain't Map – deployment of OSM infrastructure project inspired by osm-seed

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp