clean_coords library

Functions

cleanCoords(GeoJSONObject geojson, {bool mutate = false}) Feature<GeometryObject>
Removes redundant coordinates from any GeometryType. Takes a Feature or GeometryType mutate allows GeoJSON input to be mutated Returns the cleaned input Feature example:
isPointOnLineSegment(Position start, Position end, Position point) bool
Returns if point is on the segment between start and end. Borrowed from booleanPointOnLine to speed up the evaluation (instead of using the module as dependency). start is the coord pair of start of line, end is the coord pair of end of line, and point is the coord pair of point to check.