Skip to content

Outdoor round trip planner using the api of openrouteservice

Notifications You must be signed in to change notification settings

hblitza/bike_round_trip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bike round trip planner

A bike round trip planner for NRW using the api of openrouteservice.
Online version

Info

This is a simple react-geo based round trip planner for biking tours. While waypoints can be set individually or calculated with help of turf.js, the final directions are based on openrouteservice.
Optional For using a custom mapstyle that focuses on biking needs, additional steps and tools are needed (see below).

Install

Clone repository to your local drive

npm i

Start

npm start

Install map style

  1. Download an OSM data extract from http://download.geofabrik.de, e.g. for Nordrhein-Westfahlen:
http://download.geofabrik.de/europe/germany/nordrhein-westfalen-latest.osm.pbf
  1. PostgreSQL: Create Database and activate PostGIS extension.
CREATE DATABASE bike_nrw;
CREATE EXTENSION POSTGIS;
  1. Import the OSM dataset into the database using Imposm See /mapstyle for config and mapping file
imposm3 import -config config.json -read nordrhein-westfalen-latest.osm.pbf -write -limitto nrw.geojson
  1. Geoserver: Install the following extensions:
  • Importer
  • Vector tiles
  • mbstyle
  • Import all database tables (see step 4) using Importer. Important: Activate application/x-protobuf;type=mapbox-vector (image format) in the Tile-Cache configuration.
  • Create new style (Format: mystyle) and import the bikestyle.json file from /mapstyle
  • Create a new group layer (no need for adding the single layers) and apply the bike style
  1. Mapproxy: Config file: /mapstyle/mapproxy.yaml
 mapproxy-util serve-develop mapproxy.yaml -b localhost:8081
  1. src/mapconfig.js: Comment out line 59 and 60. Comment in line 61 to 62. That's it.

FAQ

  1. Why NRW?
    This project is among others a showcase for using newly published open geodata by the authorities in combination with existing open data and tools. Of course the app will work outside of NRW, too. But the shaded relief layer is limited to the state of NRW.
  2. Can I use the app for planning hiking round trips?
    Yes, just toogle the button with the bike icon. This will set the directions profile to hiking.

Licence

to do

About

Outdoor round trip planner using the api of openrouteservice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published