getFeaturesWithRoadDirection

fun getFeaturesWithRoadDirection(road: Feature, intersectionRelativeDirections: FeatureCollection): FeatureCollection

Given a road Feature and a set of intersectionRelativeDirections this will return a feature collection with an entry for the road each time it appears in the intersection. Normally this would be a single Feature (one road leaving the intersection) but if the road loops around and back into the roundabout then there can be two entries - see intersectionsLoopBackTest for an example e.g. https://geojson.io/#map=18/37.339112/-122.038756