Skip to content

Instantly share code, notes, and snippets.

@Nick3523

Nick3523/Issy.py

Created May 17, 2020
Embed
What would you like to do?
#!/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
You can’t perform that action at this time.