regionsContaining method

List<RegionFeature> regionsContaining({
  1. double? lon,
  2. double? lat,
  3. List<double>? bbox,
  4. dynamic query,
  5. bool strict = false,
})

Returns a list of regions that either contain the given (lon, lat) location, or intersect with a given bbox (which is minLon, minLat, maxLon, maxLat), or contain the region matching the query string / number. The result includes the entire region hierarchy, including the 001 region for the entire world.

Implementation

List<RegionFeature> regionsContaining(
    {double? lon,
    double? lat,
    List<double>? bbox,
    dynamic query,
    bool strict = false}) {
  _checkReady();
  return _borders!.regionsContaining(
      lon: lon, lat: lat, bbox: bbox, query: query, strict: strict);
}