placemarkFromCoordinates function

Future<List<Placemark>> placemarkFromCoordinates(
  1. double latitude,
  2. double longitude,
  3. {String? localeIdentifier}
)

Returns a list of Placemark instances found for the supplied coordinates.

In most situations the returned list should only contain one entry. However in some situations where the supplied coordinates could not be resolved into a single Placemark, multiple Placemark 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<Placemark>> placemarkFromCoordinates(
  double latitude,
  double longitude, {
  String? localeIdentifier,
}) =>
    GeocodingPlatform.instance!.placemarkFromCoordinates(
      latitude,
      longitude,
    );