getByH3Index method

Future<HeliumPagedResponse<List<HeliumHotspot>>> getByH3Index(
  1. String h3index
)

Fetches the hotspots which are in the given H3 index.

The supported H3 indices are currently limited to resolution 8.

Implementation

Future<HeliumPagedResponse<List<HeliumHotspot>>> getByH3Index(
    String h3index) async {
  return _client._doPagedRequest(HeliumPagedRequest(
    path: '/v1/hotspots/hex/$h3index',
    extractResponse: (json) =>
        HeliumRequest.mapDataList(json, (h) => HeliumHotspot.fromJson(h)),
  ));
}