NominatimServiceClient constructor
NominatimServiceClient({
- required NominatimServiceType type,
- SearchRequest? searchRequest,
- ReverseRequest? reverseRequest,
- LookupRequest? lookupRequest,
- 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,
});