A collection of Jupyter notebooks for learning geospatial analysis with Python.
- Compute isochrones
- Compute more isochrones
- Tips and tricks for visualization
- Is there a Vélo Toulouse (city bike rental) 5 minutes nearby ?
- Is there a Velib bike (Paris) 5 minutes nearby ?
Several external APIs are called that handle heavy computations and resources. Without these API, it would not be possible to run those script on a regular desktop machine. Follow the link and request a key to use their APIs.
External API | API type | Tarification |
---|---|---|
OAlley |
isochrone / isodistance / routing | Free during beta |
Open Street Map |
tile layers | Free for fair-use |
Google Maps |
tile layers | Free for personal use ? |
For visualization, the folium
library, although poorly documented, is great.
It acts as a wrapper on top of leaflet.
The following packages are required.
pip install requests folium grequests polyline
The shapely package is also required in some advanced tutorials.
On Unix and Mac systems, install it with pip
.
pip install shapely
On Windows, download the package here (cp27
for python 2.7, cp34
for python 3.4, etc.)
Run the following command where the file was downloaded. (Modify the filename if needed).
pip install Shapely-1.5.17-cp35-cp35m-win32
To run those scripts you will need to install the Jupyter notebook application.
In the parent directory of this repository, run in a terminal the following command to open the local web-application.
jupyter notebook
Navigate inside the repository and click on any of the notebooks (.ipynb
files) to open it.
Go to Kernel
-> Restart and Run all
to run the entire notebook.
Note that you can run a selected cell again by hitting Ctrl + Enter. This is highly convienient if you have made heavy API calls in the previous cell, but just want to update some parameters visualization in the currently selected cell.
I am one of the developpers of OAlley. This repository is a summary of my experimentations with the API, of playing around with it. I hope you will enjoy it just as much.