Home > Net >  Map Creation in Python
Map Creation in Python

Time:07-08

How can I add a basemap to the list of coordinates I plotted in Python? I would like the map to have a close up of my study area. I already have the txt file in Python, is just plot the list of coordinates in Python.

CodePudding user response:

Look into packages like geopandas, and then a visualization library of your choice that supports geographical data. Plotly, Bokeh, Seaborn/geoplot, etc. are all good options.

Search for "geospatial data python" on Google :)

CodePudding user response:

you can try to do it with folium lib.:

import folium

    folium_map = folium.Map(location=[30.0,30.0],
                            zoom_start=1,
                            tiles='MyDB title')
    
    
    FastMarkerCluster(data=list(zip(df['latitude'].values, df['longitude'].values))).add_to(folium_map)
    folium.LayerControl().add_to(folium_map)
    folium_map
  • Related