latlngAsync method

Future<LatLng> latlngAsync()

Obtain latitude and longitude.

  • Android: Obtain from MediaStore or EXIF (Android 10).
  • iOS/macOS: Obtain from photos.

LatLng.latitude and LatLng.longitude might be 0.

Implementation

Future<LatLng> latlngAsync() => plugin.getLatLngAsync(this);