cityImage.pedestrian_network_from_osm#

cityImage.pedestrian_network_from_osm(query=None, *, crs, download_method='OSMplace', distance=500, address=None, point=None, polygon=None, sidewalk_policy='keep_both')[source]#

Download OSM highway features with OSMnx and build a pedestrian network.

This is a thin optional convenience wrapper. The cityImage-specific part is the pedestrian filtering; OSM acquisition remains delegated to OSMnx.

Parameters:
  • query (Any) – Place name for download_method="OSMplace". For address/point/polygon methods, prefer the explicit keyword arguments.

  • crs (Any) – Target projected CRS for the output network.

  • download_method (str) – One of "OSMplace", "distance_from_address", "distance_from_point", or "polygon".

  • distance (float) – Distance in metres for address/point downloads.

  • address (str | None) – Explicit spatial inputs for the corresponding download methods.

  • point (tuple[float, float] | None) – Explicit spatial inputs for the corresponding download methods.

  • polygon (Any) – Explicit spatial inputs for the corresponding download methods.

  • sidewalk_policy (str) – How to reconcile separately-mapped sidewalks with road centrelines; see filter_pedestrian_osm_features().

Return type:

tuple[GeoDataFrame, GeoDataFrame]