NominatimGeocoding class

NominatimGeocoding provides two function for forward geocoding and reverse geocoding. Both functions return Geocoding which contains Address and Coordinate.

Constructors

NominatimGeocoding()

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

clearAllCache() → void
Clear all cache of the cache storage.
forwardGeoCoding(Address address) Future<Geocoding>
Forward geocoding of the address type Address. City attribute should not be empty. Postalcode must be greater than 0.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reverseGeoCoding(Coordinate coordinate, {Locale locale = Locale.EN}) Future<Geocoding>
Reverse geocoding of the address with coordinate.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

to NominatimGeocoding
Get NominatimGeocoding object. Stictly: use this getter to create object. Only use this getter after initializing package as follows:
no setter

Static Methods

init({int reqCacheNum = 100}) Future<void>
Initialize the package before start using the package. reqCacheNum of type int is number of request to be cached in storage. Defaults to value 100.