I would like to use Folium map to plot markers. My locations are in France. I have latitude and longitude information. So I create POINT geometry in order to implement them in Folium map.
df = pd.read_csv('./data/addresses_geocoded.csv', sep = ';', encoding = 'latin-1')
geometry = [Point(xy) for xy in zip(df['latitude'], df['longitude'])]
geo_df = gpd.GeoDataFrame (df[['type', 'contrat']], geometry = geometry, crs={'init':'epsg:4326'})
Then, I create a map and add geodata.
map_contrat = folium.Map(location=[45.7174, 4.9036], tiles='openstreetmap', zoom_start=12)
As I want to be able to select or hide data from legend, I add geodata using features.
folium.features.GeoJson(geo_df[geo_df['contract'] == "A"], name="A").add_to(map_contrat)
folium.features.GeoJson(geo_df[geo_df['contract'] == "B"], name="B").add_to(map_contrat)
But, as I understand, due to wrong crs or epsg, my data is not located it the right place.
I am a bit lost with all possibility to chose epsg. It may be a trick to knwow which one to use ?
Thanks in advance