Package-level declarations
Measurement functions for calculating distances, areas, bearings, centers, bounding boxes, and other geospatial metrics using the Haversine formula and related algorithms.
Functions
Takes two points and finds the geographic bearing between them, i.e., the angle measured in degrees from the north line.
Takes two positions and finds the geographic bearing between them, i.e., the angle measured in degrees from the north line.
Computes the bounding box that encompasses all given coordinates.
Takes a Geometry and calculates the bounding box of all input features.
Calculates the distance between a given line and the nearest point on the line to a point.
Calculates the distance between a given line and the nearest point on the line to a position.
Calculates the distance between a given point and the nearest point on a line.
Calculates the distance between two points. This uses the Haversine formula to account for global curvature.
Calculates the distance between two positions. This uses the Haversine formula to account for global curvature.
Calculate great circles routes as LineString. Raises error when from and to are antipodes.
Takes a LineString and returns a Point at a specified distance along the line.
Takes two Points and returns a point midway between them. The midpoint is calculated geodesically, meaning the curvature of the earth is taken into account.
Takes two Positions and returns a point midway between them. The midpoint is calculated geodesically, meaning the curvature of the earth is taken into account.
Calculates the distance along a rhumb line between two points.
Takes a bounding box and calculates the minimum square bounding box that would contain the input.
Takes a bounding box and returns an equivalent Polygon.
Returns a copy of this GeoJSON object with a computed bounding box.