2020-09-26, 01:30 PM
You can have a network, where each node represents an intersection or point on a curve. Node connections would define roads. To find out what road you are , you just find out the nearest line segment and if the perpendicular distance to that road is bigger than road thickness, then you are not on a road.