Tips and tricks for visualization


This tutorial will show you how to draw closed contours with folium.

We will draw isochronous areas computed with the OAlley API.

Running this example


If you want to run this example to compute your own isochrones, you will need an OAlley API key. Go to and signup. It's free. Each new user receives a key with 1000 requests available.

Paste the key in the code below.

Also, this example requires a version of folium > 0.3. Once you have downloaded this file, Don't forget to hit

to run this.

Compute isochrones


Display the zones


Play around with the fill and contour colors.

Note: The fit_bounds method seems broken as of 0.3.0. This is specific to PolygonMarker. The fitted view does not actually fit to the complete size of the polygons. Should be fixed in a near future.

Loading output library...



Go to the repository page to see all other examples and experimentations, test them yourself and contribute if you feel like it.