station_surroundings¶
station_surroundings
¶
station_surroundings(info: DataFrame, *, transit: DataFrame | None = None, osm: Any = None, radius_m: float = 300.0, transit_radius_m: float | None = None, osm_category_col: str | None = None) -> DataFrame
One-shot "what's around each station": transit feeders + OSM features in a radius.
Combines link_transit_stops and enrich_with_osm /
features_within into a single context frame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
info
|
DataFrame
|
Canonical station inventory. |
required |
transit
|
DataFrame
|
GTFS |
None
|
osm
|
GeoDataFrame or DataFrame
|
OSM features (GeoDataFrame → geometry reduced automatically) or a plain lat/lon
frame; adds |
None
|
radius_m
|
float
|
Radius for OSM features (and transit if |
300
|
transit_radius_m
|
float
|
Separate radius for the transit feeder test (defaults to |
None
|
See Also
features_within : The buffer join behind it.
enrich_with_osm : Add OSM amenity counts.
link_transit_stops : Add transit access.