Skip to content

Routing for biycles, alternative interface to Brouter.de, focused on safety.

License

Notifications You must be signed in to change notification settings

atelier-des-communs/safecycle

Repository files navigation

About

This repository contains the code of safecycle.atelier-des-communs.fr. It is a free bicycle route service, focused on safety.

It is an alternative / simplified interface to Brouter.de, with specific profiles avoiding unprotected roads and integrating the use of mountain bikes (dirt roads).

This service is developed by l'Atelier des communs / Raphaël Jolivet.

Setup

This website is developped in Python / Flask

  1. Create a file .env with the same folder, with at least the mandatory parameter set :

    Key Value Default
    SECRET_KEY "any-secret-123" (for session) mandatory
    FLASK_ENV development / production mandatory
    CENTER Initial center of map : lat,lon mandatory
    COUNTRY 2 letter country code to restrict location search empty
    INIT_ZOOM Initial zoom 14
    CACHE_DEFAULT_TIMEOUT Timeout for cache of resquests to Brouter, in seconds 24 * 3600
    STATIC_CACHE_TIMOUT Timeout for cache of resquests to Brouter, in seconds 24 * 3600

    See other settings in config.py

  2. Install dependencies :

    > pip install -r requirements

  3. Run flask

    > flask run

  4. Access http://localhost:5000

For production, you might want to use a WSGI server like gunicorn

Licence

This code is provided under the BSD license

Donations

If you find this service useful, you can make a donation on Paypal to support my work.

Thanks.

Contact

You can contact me at [email protected]

About

Routing for biycles, alternative interface to Brouter.de, focused on safety.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published