-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Labels
Description
The lineChunk method should be ported to this library:
Divides a LineString into chunks of a specified length. If the line is shorter than the segment length then the original line is returned.
This method would be useful for sampling a geometry before passing the simplified geometry into a map matching algorithm: mapbox/mapbox-directions-swift#661 (comment).
Suggested LineString method signatures:
func dividedIntoChunks(of length: LocationDistance, reversed: Bool) -> MultiLineStringReactions are currently unavailable