split Road By Intersection
Given an intersection Feature and a road Feature will split the road into two based on the coordinate of the intersection.
Return
a Feature Collection containing two roads. One road will contain the intersection coordinates at the "end" and the second road will contain the intersection coordinates at the "start"
Parameters
intersection
intersection Feature that is used to split the road using the intersection coordinates.
road
The road that is being split into two