0.0.5 • Published 2 years ago

osmhelper v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

osmhelper

To get better insight into the data, I wrote osmhelper. I wrote it in a very short time, please let me know if its broken For now i only tested it on Ubuntu 22.10

Prerequisites

  • Docker
  • Docker-compose
  • nodejs (i think 16+ is safe)
  • npm or yarn

Configuration

  • NOTE: below folder+files are automatically created with default values after running yarn osmhelper:init (see below)
  • osmhelper/.env contains settings that can be changed.
  • osmhelper/bridges_mapping.yaml contains the imposm mapping that produces the postgres tables from the OSM data

How to get it working

  1. Clone this repo from github
  2. Run npm install or yarn to install dependencies
  3. Run yarn osmhelper:init to setup initial configuration
  4. Run yarn osmhelper:start
    • This can take a while, it will download docker images and start everything
  5. Run yarn osmhelper:download
  6. Run yarn osmhelper:imposm
    • This imports the OSM data into postgres, using the mappings from osmhelper/bridges_mapping.yaml
    • All tables go into the public database, for convenience.
  7. Run yarn import:dpwh
  8. Run yarn generate
  9. Go to http://localhost:8081 to view the postgres database in the browser

Tools used / inspiration

0.0.5

2 years ago

0.0.4

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago