hydromt_fiat.drivers.osm_driver.osm_request#
- hydromt_fiat.drivers.osm_driver.osm_request(polygon: MultiPolygon | Polygon, tags: dict[str, Any], geom_type: list[str] | None = None, reduce: bool = True) GeoDataFrame[source]#
Retrieve OSM data with the OSMnx api.
- Parameters:
polygon (MultiPolygon | Polygon) – Area of interest.
tags (dict) – OSM tag to filter data with, i.e. {‘building’: True}.
geom_type (list[str], optional) – List of geometry types to filter data with, i.e. [‘MultiPolygon’, ‘Polygon’].
reduce (bool, optional) – Whether or not to reduce the output geodataframe to the columns corresponding to the tags and (of course) the geometry column. By default True.
- Returns:
GeoDataFrame with OSM data.
- Return type:
gpd.GeoDataFrame