status method

  1. @override
Future<StatusResponse> status()
override

Retrieves the status of the Nominatim service.

Returns a Future that completes with a StatusResponse object.

Implementation

@override
Future<StatusResponse> status() async {
  return await loadWithIsolate(() async {
    var response = await NominatimServiceClient(
      type: NominatimServiceType.status,
    ).request();

    // Convert response to a StatusResponse object
    return StatusResponse.fromJson(response as Map<String, dynamic>);
  });
}