NominatimServiceClient class
Class responsible for making requests to the Nominatim service.
- Implemented types
Constructors
- NominatimServiceClient({required NominatimServiceType type, SearchRequest? searchRequest, ReverseRequest? reverseRequest, LookupRequest? lookupRequest, String? language})
- Constructor for the NominatimServiceClient.
Properties
- bodies → dynamic
-
Get the request body. Always returns null as the Nominatim service does not require a request body.
no setteroverride
- endpoints → String
-
Base URL for the Nominatim service.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> ? -
Headers for the request. Always accepts any content type.
no setteroverride
- language → String?
-
The language for the request, if applicable.
final
- lookupRequest → LookupRequest?
-
The lookup request parameters, applicable if the service type is NominatimServiceType.lookup.
final
- methods → HTTPMethod
-
HTTP method for the request. Always uses GET method.
no setteroverride
- paths → String
-
Get the API endpoint path based on the service type.
no setteroverride
-
queries
→ Map<
String, String> ? -
Get the query parameters for the request based on the service type.
no setteroverride
- reverseRequest → ReverseRequest?
-
The reverse request parameters, applicable if the service type is NominatimServiceType.reverse.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchRequest → SearchRequest?
-
The search request parameters, applicable if the service type is NominatimServiceType.search.
final
- type → NominatimServiceType
-
The type of Nominatim service.
final
- urls → String
-
Get the complete URL for the request.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
request(
) → Future -
Perform the request using the APIProvider.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited