No description
Find a file
2017-03-14 19:02:11 +01:00
css switch icons to Font Awesome (for now) 2016-10-01 12:30:30 +02:00
dist Add Esri World Imagery layer 2016-12-12 12:47:01 +01:00
js Add Thunderforest API key ("Hobby Project" plan), fixes #70 2017-03-14 19:02:11 +01:00
.gitignore add keys.js to configure API keys instead of specific ajax loading 2016-09-22 12:06:18 +02:00
bower.json switch icons to Font Awesome (for now) 2016-10-01 12:30:30 +02:00
CHANGELOG.md Add Esri World Imagery layer 2016-12-12 12:47:01 +01:00
config.js fixed transit switch instead of URL params, as im demo is separate 2016-10-13 19:14:06 +02:00
gulpfile.js gulp: watch for css changes. Fix #57 2016-11-30 20:07:04 +01:00
index.html Add Esri World Imagery layer 2016-12-12 12:47:01 +01:00
keys.js.template Add Thunderforest API key ("Hobby Project" plan), fixes #70 2017-03-14 19:02:11 +01:00
LICENSE License: 2016 + "and contributors" 2016-08-03 10:54:43 +02:00
package.json gulp: don't uglify in debug mode 2016-11-30 20:04:24 +01:00
README.md gulp: don't uglify in debug mode 2016-11-30 20:04:24 +01:00

brouter-web

Web client (by @nrenner) for the BRouter routing engine (by @abrensch). Work in progress.

BRouter online service (provided by @abrensch):
http://brouter.de/brouter-web/

This repository is only about the frontend. For the server/backend, BRouter routing engine, Android app, profiles, brouter.de site, see:
https://github.com/abrensch/brouter

More information:
http://brouter.de

General BRouter discussions/questions, support:
http://groups.google.com/group/osm-android-bikerouting

Installation

As an alternative to the above online version, the standalone server of BRouter can also be run on your local desktop.

Install BRouter (server with routing engine)

  1. download and unzip latest BRouter revision
    e.g. for Linux (replace ~/opt/ with your preferred install dir and 1_4_1 with latest version):

     mkdir ~/opt/brouter
     cd ~/opt/brouter
     wget http://brouter.de/brouter_bin/brouter_1_4_1.zip
     unzip brouter_1_4_1.zip
     chmod +x ./standalone/server.sh
    
  2. download one or more data file(s) (rd5) into segments4 dir

Install BRouter-Web (client)

  1. download BRouter-Web as subdirectory brouter-web of the brouter directory

      wget https://github.com/nrenner/brouter-web/archive/master.zip
      unzip master.zip
      mv brouter-web-master brouter-web
    
  2. configure URL to profiles2 directory
    set BR.conf.profilesUrl in config.js, e.g. uncomment:

     BR.conf.profilesUrl = 'http://localhost:8000/profiles2/';
    
  3. add your API keys (optional)
    copy keys.js.template to keys.js and edit to add your keys

Run

  1. start BRouter server in the standalone directory with ./server.sh or server.cmd (Windows)

  2. serve the brouter directory for BRouter-Web
    This is needed for pre-loading the selected profile (unless you allowed local file access in the Browser). Depending on your setup (see How to run things locally), start a web server in the brouter directory, e.g.:

     python -m SimpleHTTPServer
    
  3. open http://localhost:8000/brouter-web/

Build

Dependencies

Requires Node and npm (or io.js), Bower and Gulp:

npm install -g bower
npm install -g gulp

Install

npm install
bower install

Build

gulp #for release
gulp debug #for development

Develop

gulp watch

License

Copyright (c) 2016 Norbert Renner and contributors, licensed under the MIT License (MIT)

Credits and Licenses