getGeolocation method

Future<GeolocationResponse> getGeolocation({
  1. int? homeMobileCountryCode,
  2. int? homeMobileNetworkCode,
  3. String? radioType,
  4. String? carrier,
  5. bool? considerIp,
  6. List<CellTower> cellTowers = const [],
  7. List<WifiAccessPoint> wifiAccessPoints = const [],
})

Implementation

Future<GeolocationResponse> getGeolocation({
  int? homeMobileCountryCode,
  int? homeMobileNetworkCode,
  String? radioType,
  String? carrier,
  bool? considerIp,
  List<CellTower> cellTowers = const [],
  List<WifiAccessPoint> wifiAccessPoints = const [],
}) async {
  final body = buildBody(
    homeMobileCountryCode: homeMobileCountryCode,
    homeMobileNetworkCode: homeMobileNetworkCode,
    radioType: radioType,
    carrier: carrier,
    considerIp: considerIp,
    cellTowers: cellTowers,
    wifiAccessPoints: wifiAccessPoints,
  );

  return getGeolocationFromMap(body);
}