geojson linestring test fixture
Takes any LineString or Polygon and returns the overlapping lines between both features.
Split a LineString by another GeoJSON Feature.
Checks if two geometries cross each other.
Finds the nearest point on a line to a given point
Takes any LineString or Polygon GeoJSON and returns the intersecting point(s).
Checks if a point lies directly on a line, like a path or road.
Converts a polygon to a line string.
Creates line segments from a GeoJSON feature.
Converts line(s) to polygon(s).
Determine whether each segment of a line is parallel to the correspondent segment of another line.
Calculates a point along a line at a specific distance
Takes a ring and return true or false whether or not the ring is clockwise or counter-clockwise.
Divides a LineString into chunks of a specified length.
Checks if two geometries have an area of overlap without one being completely contained inside the other.
Polygonizes a set of lines that represents edges in a planar graph.
Takes a line and returns a line at offset by the specified distance.
Useful for extracting only the part of a route between two distances.
Useful for extracting only the part of a route between waypoints.
Smooths a line into a curve using Bézier splines, great for visualizing routes.
Takes a GeoJSON feature and returns points at all self-intersections.
Dissolve contiguous GeoJSON LineStrings and Polygons into single units.
Polyline encoding and decoding
Calculates the length of a line, perfect for paths or routes.