geoContains function

bool geoContains(
  1. Map? object,
  2. List<num> point
)

Returns true if and only if the specified GeoJSON object contains the specified point, or false if the object does not contain the point.

The point must be specified as a two-element array [longitude, latitude] in degrees. For Point and MultiPoint geometries, an exact test is used; for a Sphere, true is always returned; for other geometries, an epsilon threshold is applied.

Implementation

bool geoContains(Map? object, List<num> point) =>
    object != null && _containsObjectType.containsKey(object['type'])
        ? _containsObjectType[object['type']]!(object, point)
        : _containsGeometry(object, point);