Web client for the BRouter routing engine. Work in progress.
BRouter online service:
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
As an alternative to the above online version, the standalone server of BRouter can also be run on your local desktop.
-
download and unzip latest BRouter revision
e.g. for Linux (replace~/opt/
with your preferred install dir and1_2
with latest version):mkdir ~/opt/brouter cd ~/opt/brouter wget http://brouter.de/brouter_bin/brouter_1_2.zip unzip brouter_1_2.zip chmod +x ./standalone/server.sh
-
download one or more data file(s) (rd5) into
segments3
dir
-
download BRouter-Web as subdirectory
brouter-web
of thebrouter
directorywget https://github.com/nrenner/brouter-web/archive/master.zip unzip master.zip mv brouter-web-master brouter-web
-
configure URL to
profiles2
directory
setBR.conf.profilesUrl
in config.js, e.g. uncomment:BR.conf.profilesUrl = 'http://localhost:8000/profiles2/';
-
start BRouter server in the
standalone
directory with./server.sh
orserver.cmd
(Windows) -
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 thebrouter
directory, e.g.:python -m SimpleHTTPServer
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
Copyright (c) 2014 Norbert Renner, licensed under the MIT License (MIT)
- BRouter (not included)
by abrensch; GNU General Public License, version 3.0 (GPLv3) - Leaflet
Copyright (c) 2010-2014, Vladimir Agafonkin; Copyright (c) 2010-2011, CloudMade; 2-clause BSD License - leaflet-routing
Copyright (c) 2013, Turistforeningen, Hans Kristian Flaatten. All rights reserved. 2-clause BSD License - Leaflet.Elevation
Copyright (c) 2013 Felix Bache; MIT License - D3.js
Copyright (c) 2013, Michael Bostock. All rights reserved.; 3-clause BSD License - Leaflet.draw
Copyright 2012 Jacob Toye; MIT License - Leaflet Control Geocoder
Copyright (c) 2012 sa3m, Copyright (c) 2013 Per Liedman; 2-clause BSD License - leaflet-plugins
Copyright (c) 2011-2012, Pavel Shramov; 2-clause BSD License - Async.js
Copyright (c) 2010-2014 Caolan McMahon; MIT License - Bootstrap
Copyright (c) 2011-2014 Twitter, Inc; MIT License - jQuery
Copyright 2005, 2014 jQuery Foundation and other contributors; MIT License - DataTables
Copyright (C) 2008-2014, SpryMedia Ltd.; MIT License - Leaflet.EasyButton
Copyright (C) 2014 Daniel Montague; MIT License - Bootbox
Copyright (C) 2011-2014 by Nick Payne; MIT License - bootstrap-slider
Copyright (c) 2015 Kyle Kemp, Rohit Kalkur, and contributors; MIT License