Git Product home page Git Product logo

openrouteservice-app's Introduction

Classic openrouteservice maps client

status: archive Build Status

The classic openrouteservice(ors) maps client is an online route planning application that is based on open source software, open data and open standards.

It uses the openrouteservice API and needs a valid API key (free up to a certain request limit per day)

preview

Installation

Requirements:

  • git
  • docker
  • docker-compose

Clone the repository

git clone https://github.com/GIScience/openrouteservice-app.git

# switch to repository folder
cd openrouteservice-app

First Replace weathercheck.txt content with your Api-Key:

# Open `app/weathercheck.txt` in your favorite text editor and replace the content with your Token.
# e.g.:
vim app/weathercheck.txt

Build the docker image:

docker-compose build

Running the client

Run docker-compose up:

docker-compose up -d

The app will be exposed on http://localhost:8035

Running in development mode

Normal endpoints:

docker-compose run -p 3005:3005 --rm ors-classic-maps dev

If you want to use the openrouteservice client with a local backend version of openrouteservice make sure you are using the correct endpoint paths in ngconstant.local of the Grunfile.sample.js.

Local ors backend:

docker-compose run -p 3005:3005 --rm ors-classic-maps ors_local

Note: In case of CORS issues try setting the endpoints of the backend services to http://localhost:3005 which should be proxied to http://localhost:8082 by the connect:dev grunt task.

Install dependencies locally

If you want to have all dependencies locally, installation is a bit more difficult. Also, the commands for running the client are a bit different.

Requirements:

Permission Issues

If you encounter any permission issues during the installation:

  • on Linux: try running npm-commands with sudo :

e.g.:

sudo npm install
  • on Windows(GitBash recommended): try running npm-commands with the --no-optional flag:

e.g.:

npm install --no-optional

Installation

After cloning the repository:

  • Install dependencies:
# install all modules listed as dependencies in package.json
npm install
  • Initiate default files:
# Copy `Gruntfile.default.js` to `Gruntfile.js`
cp Gruntfile.default.js Gruntfile.js

# Copy `weathercheck.default.txt` to `weathercheck.txt`
cp app/weathercheck.default.txt app/weathercheck.txt

Don't forget to edit weathercheck.txt and insert your API key.

Run openrouteservice:

To enable console output information and logging for bug-fixing and feature development do:

grunt dev

To build for production (all output in build folder):

grunt ors

To use a local ors backend:

grunt ors_local

Contribution

If you would like to contribute, please note that we are using a branching model to structure our git workflow and are following commit message guidelines.

For minor bugfixes use the development branch:

git checkout development

For new features, please create a new branch:

git checkout -b feature_branch

Do a pull request to our development branch. Be sure to pull the latest changes beforehand and fix any emerging conflicts.

Translations

Help us to provide the openrouteservice in your language by translating some simple keywords!

In this spreadsheet you can add a column for your language or check the already added words if they are correctly translated. Our service will be updated regularly with the latest language versions.

If there are further questions, please let us know!

License

(The MIT License)

Copyright (c) 2017 GIScience Research Group, Heidelberg University.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

openrouteservice-app's People

Contributors

thegreatrefrigerator avatar timmccauley avatar unraveler avatar tumluliu avatar marq24 avatar aury88 avatar stefanocudini avatar krichter722 avatar yvan-masson avatar darkshadowlho avatar debyos avatar sfendrich avatar thony8 avatar teromene avatar snyk-bot avatar not-a-kiwi avatar mircozorzo avatar cendern avatar yuryleb avatar schmittlauch avatar rungee avatar tyrasd avatar luisagri avatar snowdog avatar rabidllama 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.