Created
May 17, 2020 14:10
-
-
Save Nick3523/ecafb28272ee6fce17cbdd355d114630 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import folium | |
df = pd.read_csv('les-arbres-dissy-les-moulineaux-equipe-avec-un-code-qr.csv',sep=';') | |
tf = df['Géolocalisation'].str.split(',', expand=True) | |
df['GeoLattitude'] = tf[0] | |
df['GeoLongitude'] = tf[1] | |
#Coordonnées de la ville obtenues via : https://www.coordonneesgps.net/coordonnees-gps/issy-les-moulineaux-92130-26155-ville | |
map_osm=folium.Map(location=[48.816669, 2.26667], zoom_start=15) | |
for x,y,z in zip(df.GeoLattitude, df.GeoLongitude, df.NOM_COMMUN): | |
folium.Marker([float(x), float(y)], popup=z).add_to(map_osm) | |
map_osm.save('Issy.html') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment