Skip to content

Router for Warsaw's public bike system (Veturilo) that splits every journey into sub 20 min legs, in order to be eligable for free tier of renting.

Notifications You must be signed in to change notification settings

1116574/vetu-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vetu-router

Router for Warsaw's public bike system (Veturilo) that splits every journey into sub 20 min legs, in order to be eligable for free tier of renting.

Available endpoints

  • /dijkstra/<id1>/<id2> a route between 2 stations
  • /<id1> all stations within 20 min of id1
  • /closest/<lat>/<lon> util for getting closest station to your location

There is also a very simplistic web interface at /static/router.html and /static/map.html

Usage

  1. download.py this downloads GBFS data
  2. osrm_matrix.py with running OSRM server, see this file for instructions
  3. to_sql.py to create database
  4. to_name_keys.py

webserver.py is the entrypoint that contains the app.

Data sources

20 mins free used here

GBFS: https://gbfs.nextbike.net/maps/gbfs/v2/nextbike_vp/pl/station_information.json

30 mins free, not used here, but may be useful to you

About

Router for Warsaw's public bike system (Veturilo) that splits every journey into sub 20 min legs, in order to be eligable for free tier of renting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published