LoccodeClient class
Client for the Maimaps Loccode APIs.
Endpoints:
GET /sdk/v1/loccode/{code} – resolve a known loccode
GET /sdk/v1/loccodes/nearest – find nearest loccode by coordinates
Constructors
- LoccodeClient({required MaimapsApiClient api})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
findNearest(
{required double latitude, required double longitude}) → Future< LoccodeResult> - Find the nearest Loccode for the given GPS coordinates.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
String code) → Future< LoccodeResult> - Resolve a Loccode to its street geometry and metadata.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited