As titled, say I know the ego vehicle location, how can I get the nearest road segment in the map?
Currently, my solution would be to define a small shapely polygon around the ego vehicle and check if it has an intersection with the road segment polygon. Is there a better way to do this?