cityImage.filter_pedestrian_osm_features#

cityImage.filter_pedestrian_osm_features(highways_gdf, sidewalk_policy='keep_both')[source]#

Filter OSM highway features using cityImage pedestrian-network semantics.

Parameters:
  • highways_gdf (GeoDataFrame) – GeoDataFrame of OSM features, usually downloaded with an OSMnx features_from_*/geometries_from_* call using tags={"highway": True}.

  • sidewalk_policy (str) – How to reconcile separately-mapped sidewalks with road centrelines; one of SIDEWALK_POLICIES. Defaults to "keep_both" (no de-duplication). Use "centrelines" for one edge per street or "sidewalks" for a walking-surface network.

Returns:

Line/MultiLine features that remain after pedestrian filtering, with an added ped column: "yes" for confidently walkable ways and "noEvidence" for residential/major roads kept without pedestrian evidence.

Return type:

GeoDataFrame