traceLineString

fun traceLineString(featureCollection: FeatureCollection, distanceBetweenPoints: Double): FeatureCollection

Given a Feature Collection that contains a LineString it will return a Feature Collection of Points that trace along the LineString at given distance intervals. This is useful for faking the locations of a user walking down a road but isn't super accurate if you enter big distance intervals and the LineString has lots of curves or bends.

Return

a Feature Collection containing the Points tracing the LineString.

Parameters

featureCollection

A FeatureCollection containing the LineString we want to trace along.

distanceBetweenPoints

The distance between the Points tracing the LineString.