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 betweenstart
andend
. Borrowed frombooleanPointOnLine
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, andpoint
is the coord pair of point to check.