Save a route and conserve its curvature with Python OSMnx
问题 With OSMnx, I would like to be able to save a path with its curvature as the image below shows. import osmnx as ox import networkx as nx # Download the road network G = ox.graph_from_place('Monterey, California', network_type='drive') # Starting and ending point of a trip start = [36.580665,-121.8297467] end = [36.594319,-121.8727587] # Retrieve nearest node orig_node = ox.get_nearest_node(G, start) dest_node = ox.get_nearest_node(G, end) # Compute the path of the trip route = nx.shortest