{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "/home/filipe/.virtualenvs/iris/lib/python2.7/site-packages/folium/__init__.py\n", "0.2.0\n" ] } ], "source": [ "import folium\n", "\n", "print(folium.__file__)\n", "print(folium.__version__)" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "
" ], "text/plain": [ "" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import json\n", "\n", "with open('data/tri.json') as f:\n", " gj = folium.GeoJson(json.load(f))\n", "\n", "mapa = folium.Map(location=[35.74053999839425, -117.7495299743632], zoom_start=12)\n", "mapa.add_children(gj)\n", "\n", "mapa" ] } ], "metadata": { "kernelspec": { "display_name": "Iris (Python 2)", "language": "python", "name": "iris_python2" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.8" } }, "nbformat": 4, "nbformat_minor": 0 }