NominatimServiceClient constructor

NominatimServiceClient({
  1. required NominatimServiceType type,
  2. SearchRequest? searchRequest,
  3. ReverseRequest? reverseRequest,
  4. LookupRequest? lookupRequest,
  5. String? language,
})

Constructor for the NominatimServiceClient.

type is required and specifies the type of Nominatim service. searchRequest is optional and used if the service type is NominatimServiceType.search. reverseRequest is optional and used if the service type is NominatimServiceType.reverse. lookupRequest is optional and used if the service type is NominatimServiceType.lookup. language is optional and specifies the language for the request.

Implementation

NominatimServiceClient({
  required this.type,
  this.searchRequest,
  this.reverseRequest,
  this.lookupRequest,
  this.language,
});