movingpandas.TrajectoryCollection.explore#

TrajectoryCollection.explore(*args, **kwargs)#

Generate a plot using GeoPandas explore (folium/leaflet.js) https://geopandas.org/en/stable/docs/reference/api/geopandas.GeoDataFrame.explore.html

Parameters:
  • args – These parameters will be passed to GeoPandas explore

  • kwargs – These parameters will be passed to GeoPandas explore

Returns:

m – folium Map instance

Return type:

folium.folium.Map

Examples

Plot speed along trajectory (with legend and specified figure size):

>>> trajectory_collection.explore(column='speed', vmax=20, tiles="CartoDB positron")