https://github.com/andygol/yamap
Yamap Ain't Map – deployment of OSM infrastructure project inspired by osm-seed
https://github.com/andygol/yamap
api data extract geo-data map openstreetmap osm
Last synced: 8 months ago
JSON representation
Yamap Ain't Map – deployment of OSM infrastructure project inspired by osm-seed
- Host: GitHub
- URL: https://github.com/andygol/yamap
- Owner: Andygol
- License: unlicense
- Created: 2023-02-17T17:26:29.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-03T14:13:55.000Z (8 months ago)
- Last Synced: 2025-06-04T00:58:35.040Z (8 months ago)
- Topics: api, data, extract, geo-data, map, openstreetmap, osm
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yamap
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
```mermaid
flowchart TD
A[Planet OSM] -->|diffs| B(Local API DB
with regional
extract)
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]
```
## 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
```
Use `make ` to run a particular task.
```
Usage:
make
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 services
Cleanup
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 deployment
Building
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 manually
Helpers
list List containers
images List images used by the created containers
config Parse, resolve and render compose file in canonical format
Help
help Display this help
```
### Preparation
Specify path to the input data extract and path to `*.poly` file
in the [popdb.env](env/popdb.env).
Replication interval and replication URI can be adjusted in the [repapidb.env](env/repapidb.env).