Try using folium with anaconda

folium is an open street map that can be used with python. The method of installing and using with pip has already been posted, but I will also describe the method using anaconda here. It's almost the same usage, but ... Qiita This is my first post, so please give it a try.

Put folium in anaconda

Follow can be installed (https://anaconda.org/ioos/folium) with the conda command.

conda install -c ioos folium=0.2.1

After putting it in, let's display the list with conda list.

Try using folium with jupyte notebook.

Display the map.

If you just want to display it, you can easily do it as follows. It is displayed based on the latitude and longitude of Fou common interest.

import folium
map = folium.Map(location=[35.681298, 139.766247], zoom_start=5)
map

screencapture-localhost-8888-notebooks-Untitled21-ipynb-1477292981465.png

Stick a pin on the map.

To put a pin on the map, use marker to add it to the map. This time I have specified Tokyo station, so I will pin it to Tokyo station. I also tried pop-up.

folium.Marker([35.681298, 139.766247], popup='Tokyo Station').add_to(map)

map.png

Export to html on the map.

You can use create_map to export the displayed map as html.

map.create_map(path='map.html')

At the end

It's a mystery if this article is useful to anyone, but ... That's all for today. I would like to add how to use it as appropriate.

Recommended Posts

Try using folium with anaconda
Try using PythonTex with Texpad.
Try using matplotlib with PyCharm
Try using Spyder included in Anaconda
Try using Python's networkx with AtCoder
Try using Tkinter
Try using docker-py
Try using cookiecutter
Try using PDFMiner
Try using the camera with Python's OpenCV
Try using geopandas
Try using Dropbox API v2 with Go
Try using Python with Google Cloud Functions
Try using Selenium
Try using scipy
Try using pandas.DataFrame
Try using django-swiftbrowser
Try using matplotlib
Try using tf.metrics
Try using PyODE
Try drawing a map with Python's folium package
Try scraping with Python.
Try using virtualenv (virtualenvwrapper)
[Azure] Try using Azure Functions
Use Python 3.8 with Anaconda
Try using virtualenv now
Try using W & B
Try SNN with BindsNET
Try using Django templates.html
[Kaggle] Try using LGBM
Try using Python's feedparser.
Try using Python's Tkinter
Try regression with TensorFlow
I tried using folium
Try using Tweepy [Python2.7]
Try using Pytorch's collate_fn
Try projective transformation of images using OpenCV with Python
Try to make RESTful API with MVC using Flask 1.0.2
Using X11 with ubuntu18.04 (C)
Try to factorial with recursion
Try function optimization with Optuna
When using optparse with iPython
Try deep learning with TensorFlow
Using Graphviz with Jupyter Notebook
[CentOS7] Install anaconda using pyenv
[S3] CRUD with S3 using Python [Python]
Getting Started with python3 # 3 Try Advanced Computations Using Import Statements
[Python] Try using Tkinter's canvas
Install Keras (used with Anaconda)
Try edge detection with OpenCV
Messaging with AMQP using kombu
Try using scikit-learn (1) --K-means clustering
Try implementing RBM with chainer.
Try function optimization using Hyperopt
Try Google Mock with C
Using Quaternion with Python ~ numpy-quaternion ~
Try using Azure Logic Apps
Try programming with a shell!
Try GUI programming with Hy
Try an autoencoder with Pytorch
Try using Kubernetes Client -Python-