osmnx - graph_from_place gives error “no arguments

2019-08-08 05:38发布

Need to download OSM data for Manhattan region

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)

Should plot a graph of drivable streets

1条回答
时光不老,我们不散
2楼-- · 2019-08-08 06:02

This is an installation issue with a dependency. It is discussed and resolved on GitHub.

查看更多
登录 后发表回答