I have extracted all the edges from an osm road network the following way:
#load gdf of amsterdam from osm
gdf = ox.geocode_to_gdf("Drechterland, Netherlands")
#get a graph of the union of their boundaries
G = ox.graph_from_polygon(gdf.unary_union, network_type = "drive")
#project graph
graph = ox.project_graph(G)
#get edges
nodes, edges = ox.graph_to_gdfs(graph)
The edges gdf contains features of each edge, e.g. there is a column for the highway type and max speed. I would like to have additional columns that contain those features for edges that are within a perimeter of k meters around the edge (either around the central point of the edge or, e.g. k meters around each point of the edge).
I know that it is possible to get the nearest points or edges from a certain point, but is there a way to get edges that fall within a perimeter of another edge?