GeocodingPlatform class abstract
The interface that implementations of Geocoding must implement.
Platform implementations should extend this class rather than implement it
as Geocoding
does not consider newly added methods to be breaking
changes. Extending this class (using extends
) ensures that the subclass
will get the default implementation, while platform implementations that
implements
this interface will be broken by newly added
GeocodingPlatform methods.
- Inheritance
-
- Object
- PlatformInterface
- GeocodingPlatform
Constructors
- GeocodingPlatform()
- Constructs a GeocodingPlatform.
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
-
isPresent(
) → Future< bool> - Returns true if there is a geocoder implementation present that may return results. If true, there is still no guarantee that any individual geocoding attempt will succeed.
-
locationFromAddress(
String address) → Future< List< Location> > - Returns a list of Location instances found for the supplied address.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
placemarkFromAddress(
String address) → Future< List< Placemark> > - Returns a list of Placemark instances found for the supplied address.
-
placemarkFromCoordinates(
double latitude, double longitude) → Future< List< Placemark> > - Returns a list of Placemark instances found for the supplied coordinates.
-
setLocaleIdentifier(
String localeIdentifier) → Future< void> - Sets the locale identifier used for the geocoding.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ GeocodingPlatform?
-
The default instance of GeocodingPlatform to use.
getter/setter pair