I want to calculate the distances of the nearest school from buildings of a particular geographical area and then categorize the distance values (for example 0-100, 100-200, and so on) The data source used is OpenStreetMap (OSM).
Firstly, I stored the buildings and school data in two separate geodataframes and tried to adopt the solution from (Calculate Distance to Nearest Feature with Geopandas). But I've been getting some error.
This problem is different in the sense that both the geodataframes contain multiple types of geometries i.e. points(nodes in OSM) and polygons(ways in OSM).