No description
Find a file
2015-04-04 14:58:02 +02:00
css use Bootstrap alerts for error/warning messages; profile messages in place 2015-03-26 20:55:35 +01:00
dist build to single distributables with gulp, check-in dist not bower_components 2015-03-29 18:55:02 +02:00
js add button to clear route 2015-04-04 14:58:02 +02:00
.gitignore add button to clear route 2015-04-04 14:58:02 +02:00
bower.json add button to clear route 2015-04-04 14:58:02 +02:00
config.js Bing maps aerial layer 2015-03-20 12:38:31 +01:00
gulpfile.js build to single distributables with gulp, check-in dist not bower_components 2015-03-29 18:55:02 +02:00
index.html build to single distributables with gulp, check-in dist not bower_components 2015-03-29 18:55:02 +02:00
LICENSE Initial commit 2014-01-27 09:26:05 -08:00
package.json build to single distributables with gulp, check-in dist not bower_components 2015-03-29 18:55:02 +02:00
README.md switch search plugin, result-dependent zoom 2015-03-30 14:53:35 +02:00

brouter-web

Web client for the BRouter bike routing engine (Github).

BRouter online service:
http://brouter.de/brouter-web/

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_1 with latest version):

     mkdir ~/opt/brouter
     cd ~/opt/brouter
     wget http://brouter.de/brouter_bin/brouter_1_1.zip
     unzip brouter_1_1.zip
     chmod +x ./standalone/server.sh
     mv segments3 segments2  # workaround until scripts are updated
    

fix line endings with fromdos or dos2unix (might need to be installed first)

    fromdos ./standalone/server.sh
  1. download one or more data file(s) (rd5) into segments2 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/';
    

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

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

Develop:

gulp watch

License

Copyright (c) 2014 Norbert Renner, licensed under the MIT License (MIT)

Credits and Licenses