I have a dataframe composed of different trips, categorised by the type of trip (e.g. by car or by bike). Each line of the dataframe represents a stop of a given trip, including the sequence of the stop in the trip as well as its latitude/longitude coordinates.
After some search on how to plot those trips, i discovered the osmnx package. The streets network is awesome but takes a long time to be generated, especially for large zones.
Is there a way to increase computation performance, for instance downloading in local the network of the region or any other way?
Thank you for your help
import osmnx as ox
import matplotlib.pyplot as plt
place_name='France'
graph=ox.graph_from_place(place_name)
type(graph)
nodes, edges = ox.graph_to_gdfs(graph)
nodes.head()
edges.head()
type(edges)
fig, ax = plt.subplots(figsize=(15,15))
edges.plot(ax=ax, linewidth=1, edgecolor='#BC8F8F')