Giter Club home page Giter Club logo

taginfo-indoor's Introduction

indoor=

indoor= generate Mapbox's Vector Tiles (MVT) of OpenStreetMap indoor data. It implements parts of Simple Indoor Tagging.

Discover:

indoor= is build with openmaptiles-tools.

Development

In development, you should disable tiles caching.

Edit docker-compose.override.yml:

version: "3"
services:
  postserve:
    ports:
    - "8090:8090"
  postserve-cache:

And follow the usage instructions.

You can also run tests written with pgTAP:

./script/test

Usage

Import data from OpenStreetMap

To start the initial import of the planet:

./script/import

To use another area than the planet, open .env file and update the AREA variable with the name of your area. Use make list-geofabrik to find the available names. Then run ./script/import.

Import your own data

  1. Prepare .osm file with JOSM or other tool
  2. Convert file to .osm.pbf with osmium-tools: osmium cat map.osm --output map.osm.pbf
  3. Put the map.osm.pbf file to the ./data directory
  4. Tune params in the .env file (DIFF_MODE=false and AREA=map)
  5. Import data with ./script/import

Update data

To start a one-time update and invalidate the tile cache. With OSM data you probably want to update it regulary.

./script/update

Generate mbtiles

To generate a mbtiles file located at data/tiles.mbtiles

make generate-tiles-pg

Warning: Depending of the AREA, it can takes a lot of time to generate the mbtiles.

Serve vector tiles

To run the service in production with tiles caching:

docker-compose up -d postserve postserve-cache

The tiles will be available at http://localhost:8090/

To serve the tiles on another host than localhost:8090, for instance indoorequal.org, set OMT_HOST=https://indoorequal.org and PPORT=443 to the .env file.

License

All code in this repository is under the BSD license and the cartography decisions encoded in the schema and SQL are licensed under CC-BY.

Products or services using maps derived from indoor= schema need to visibly credit "IndoorEqual.org" and "OpenMapTiles.org" or reference "indoor=" and "OpenMapTiles" with a link to https://indoorequal.org/ and https://openmaptiles.org/. Exceptions to attribution requirement can be granted on request.

For a browsable electronic map based on indoor=, OpenMapTiles and OpenStreetMap data, the credit should appear in the corner of the map. For example:

© indoor= © OpenMapTiles © OpenStreetMap contributors

For printed and static maps a similar attribution should be made in a textual description near the image, in the same fashion as if you cite a photograph.

taginfo-indoor's People

Contributors

francois2metz avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.