OSMnx/OSM API 中的位置多边形名称参考

Refence for Location Polygon names in OSMnx/OSM API

查看 OSMnx and OSM API 文档,我未能找到有关如何指定世界地名的参考。

OSMnx 示例使用美国位置,其中使用了城市、县、州、国家/地区结构,但此结构当然不适用于其他国家/地区。

具体来说,我应该如何构造此查询以指定伦敦的边界?还是有我还没有找到的文档?

G = ox.graph_from_place('London', network_type='drive')

# project the network to UTM (zone calculated automatically) then plot it
G_projected = ox.project_graph(G)
fig, ax = ox.plot_graph(G_projected)

谢谢!

This thread 提供了有关如何缩小查询范围的更多详细信息。长话短说,使用 OSMnx 的 which_result 参数并将您的地点查询作为显式字典而不是字符串传递,以提高地理编码器的特异性。