-->

osmnx - graph_from_place给出错误“在初始化列表中没有争吵。”(osmnx

2019-09-26 15:32发布

需要下载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)

如果情节可行驶的街道的图

Answer 1:

这是一个安装问题的相关性。 这是讨论和解决在GitHub上 。



文章来源: osmnx - graph_from_place gives error “no arguments in initialization list”