locationFromAddress function

Future<List<Location>> locationFromAddress(
  1. String address,
  2. {String? localeIdentifier}
)

Returns a list of Location instances found for the supplied address.

In most situations the returned list should only contain one entry. However in some situations where the supplied address could not be resolved into a single Location, multiple Location instances may be returned.

Optionally you can specify a locale in which the results are returned. When not supplied the currently active locale of the device will be used. The localeIdentifier should be formatted using the syntax: languageCode_countryCode (eg. en_US or nl_NL).

Implementation

Future<List<Location>> locationFromAddress(
  String address, {
  String? localeIdentifier,
}) =>
    GeocodingPlatform.instance!.locationFromAddress(
      address,
    );