Можно ли вместо этого osmnx использовать API OHM?
Код: Выделить всё
import osmnx as ox
import networkx as nx
def web_map(place: str = "Berlin, Germany"):
"""
Returns a web map of a place.
It can be turned into an iframe of an HTML template.
"""
graph = ox.graph.graph_from_place(place, network_type="drive")
return ox.convert.graph_to_gdfs(graph, nodes=False).explore()
Подробнее здесь: https://stackoverflow.com/questions/798 ... toricalmap
Мобильная версия