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 OSMnxfeatures_from_*/geometries_from_*call usingtags={"highway": True}.sidewalk_policy (
str) – How to reconcile separately-mapped sidewalks with road centrelines; one ofSIDEWALK_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
pedcolumn:"yes"for confidently walkable ways and"noEvidence"for residential/major roads kept without pedestrian evidence.- Return type:
GeoDataFrame