getByDistance method
Fetches the hotspots which are within a given number of metres from the
given lat
and lon
coordinates.
The lat
and lon
coordinates are measured in degrees.
The distance
is measured in metres.
Implementation
Future<HeliumPagedResponse<List<HeliumHotspot>>> getByDistance(
double lat, double lon, int distance) async {
return _client._doPagedRequest(HeliumPagedRequest(
path: '/v1/hotspots/location/distance',
parameters: {
'lat': lat,
'lon': lon,
'distance': distance,
},
extractResponse: (json) =>
HeliumRequest.mapDataList(json, (h) => HeliumHotspot.fromJson(h)),
));
}