1

需要下载曼哈顿地区的 OSM 数据

import osmnx as ox
import networkx as nx
import geopandas as gpd
import matplotlib.pyplot as plt
import pandas as pd

place_name = "Manhattan, New York, USA"
graph = ox.graph_from_place(place_name, network_type='drive')
fig, ax = ox.plot_graph(graph)

应绘制可行驶街道图

4

1 回答 1

0

这是一个具有依赖关系的安装问题。它在 GitHub 上讨论和解决。

于 2019-03-29T15:04:59.207 回答