Skip to main content

isPointNearBoundary

@totemsdk/spatial-proof


@totemsdk/spatial-proof / isPointNearBoundary

Function: isPointNearBoundary()

isPointNearBoundary(point, polygon, thresholdM): boolean

True when a point is within thresholdM meters of any boundary ring of a Polygon (outer ring and holes). Uses the equirectangular approximation.

Parameters

point

Coordinate

polygon

GeoPolygonGeometry

thresholdM

number

Returns

boolean