Code Monkey home page Code Monkey logo

brouter-web's Introduction

brouter-web

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

New web client available mobile-ready to test on brouter.damsy.net. Feedbacks are appreciated, do not hesitate to create issues about it!

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

    • using the latest stable release - adjust to current version number - from https://github.com/nrenner/brouter-web/releases:

      wget https://github.com/nrenner/brouter-web/archive/0.6.3.zip
      unzip 0.6.3.zip
      mv brouter-web-0.6.3 brouter-web
      
    • OR the current development state (potentially instable and without runtime distributables):

      wget https://github.com/nrenner/brouter-web/archive/master.zip
      unzip master.zip
      mv brouter-web-master brouter-web
      
      • build the distributable files required for runtime (only for development state), see section Build
  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

brouter-web's People

Contributors

bagage avatar nrenner avatar ropp avatar saesh avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.