
import osmnx as oxox.config(use_cache=True, log_console=True)place = 'Berkeley, California, USA'cf = '["highway"~"motorway|motorway_link"]'G = ox.graph_from_place(place, network_type='drive', custom_filter=cf)print(len(G)) #36cf = '["highway"~"primary"]'G = ox.graph_from_place(place, network_type='drive', custom_filter=cf)print(len(G)) #11cf = '["highway"~"motorway|motorway_link|primary"]'G = ox.graph_from_place(place, network_type='drive', custom_filter=cf)print(len(G)) #47
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)