Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GIScience/openrouteservice-examples
:books: (Mostly) real-world examples and inspirations to use the full breadth of ORS services and clients
https://github.com/GIScience/openrouteservice-examples
Last synced: 3 months ago
JSON representation
:books: (Mostly) real-world examples and inspirations to use the full breadth of ORS services and clients
- Host: GitHub
- URL: https://github.com/GIScience/openrouteservice-examples
- Owner: GIScience
- License: apache-2.0
- Created: 2018-03-26T20:36:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-19T14:28:14.000Z (12 months ago)
- Last Synced: 2024-04-16T08:33:37.909Z (7 months ago)
- Language: Jupyter Notebook
- Homepage: https://openrouteservice.org
- Size: 94.6 MB
- Stars: 78
- Watchers: 16
- Forks: 46
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jupyter examples to use openrouteservice
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/GIScience/openrouteservice-examples/master?filepath=python)(Mostly) real-world examples and inspirations to use the full range of ORS services and clients.
For an instant setup, you can use [MyBinder](https://mybinder.org/v2/gh/GIScience/openrouteservice-examples/master?filepath=python)
to start an interactive Jupyter server.### Local installation
```bash
# clone the repo and enter folder
git clone https://github.com/GIScience/openrouteservice-examples.git
cd openrouteservice-examples# Install the requirements in a virtual env and activate it
python -m venv .venv
source .venv/bin/activatepip install -r requirements.txt
```> Note: In case jupyter is already installed globally, and you want to use the local version, you can create a symlink to
> the local jupyter with:
>
>`ln -s .venv/bin/jupyter jupyter`
>
> Then, run jupyter commands with `./jupyter` instead.### Launch the Jupyter server on the python directory
jupyter notebook python/### Development
If you are not just using but editing or adding notebooks, you need to install the jupytext extension```bash
# set up jupytext server extension
jupyter nbextension install --py jupytext --user
jupyter nbextension enable jupytext --user --py
jupyter serverextension enable jupytext
```Note, that every notebook is paired with a corresponding `.py`-file of the same name.
On changing either the notebook or the `.py`-file, the other one will be automatically updated.When reviewing changes, only the `.py`-file needs to be looked at, the
`.ipynb`-file is only kept for use with jupyter in the browser and to render
maps and other information.### Pairing new notebooks
New notebooks have to be paired by clicking `File > Jupytext > Pair notebook with light Script`