Syntax of osmnx.features.features_from_point() Function
The function creates a GeoDataFrame of OSM features within some distance of a point N, S, E, and W. Below is the syntax:
osmnx.features.features_from_point(center_point, tags, dist=1000)
Parameters:
- center_point (tuple) – the (lat, lon) center point around which to get the features
- tags (dict) – Dict of tags used for finding elements in the selected area.
- dist (numeric) – distance in meters
Returns: gdf
Return Type: geopandas.GeoDataFrame
Get OSM Features Within a Distance of a Point Using Python OSMnx Feature Module
In this article, we will see how we can get open street map features within a distance of a point (latitude-longitude) using the OSMnx feature module in Python.
Contact Us