Skip to content

[Bug]: Incorrect district/neighborhood returned for coordinates in Istanbul, Turkey #286

Open

Description

@yusufkecer

Please check the following before submitting a new issue.

Please select affected platform(s)

  • Android
  • iOS

Steps to reproduce

Description

The geocode package is returning incorrect administrative area information for coordinates in Istanbul, Turkey. The coordinates point to Esenyurt district (Atatürk Mahallesi), but the package returns Büyükçekmece district instead.

Expected results

  • Coordinates: 41.030011, 28.6397551
  • Expected Location: Atatürk Mahallesi, Esenyurt, Istanbul
  • Verification: Google Maps correctly identifies this location as Esenyurt

Actual results

  • Returned Location: Atatürk, Büyükçekmece, Istanbul
  • Issue: The district (ilçe) is incorrectly identified as Büyükçekmece instead of Esenyurt

Code sample

Code sample
Future getDetailedAddress(double lat, double lng) async {
  // Test coordinates in Esenyurt, Istanbul
  lat = 41.030011;
  lng = 28.6397551;

  try {
    List placemarks = await placemarkFromCoordinates(lat, lng);

    if (placemarks.isNotEmpty) {
      Placemark place = placemarks.first;

      // Debug output
      print('subLocality: ${place.subLocality}');
      print('thoroughfare: ${place.thoroughfare}');
      print('subThoroughfare: ${place.subThoroughfare}');
      print('subAdministrativeArea: ${place.subAdministrativeArea}');
      print('administrativeArea: ${place.administrativeArea}');
      print('locality: ${place.locality}');
      print('country: ${place.country}');

      List addressParts = [];

      if (place.subLocality != null && place.subLocality!.isNotEmpty) {
        addressParts.add(place.subLocality!);
      }

      if (place.thoroughfare != null && place.thoroughfare!.isNotEmpty) {
        addressParts.add(place.thoroughfare!);
      }

      if (place.subThoroughfare != null && place.subThoroughfare!.isNotEmpty) {
        addressParts.add('No: ${place.subThoroughfare}');
      }

      if (place.subAdministrativeArea != null && place.subAdministrativeArea!.isNotEmpty) {
        addressParts.add(place.subAdministrativeArea!);
      }

      if (place.administrativeArea != null && place.administrativeArea!.isNotEmpty) {
        addressParts.add(place.administrativeArea!);
      }

      return addressParts.join(', ');
    }

    return null;
  } catch (e) {
    print('Error: $e');
    return null;
  }
}

Version

geocoding: ^4.0.0

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.38.3, on macOS 26.1 25B78 darwin-arm64, locale tr-TR)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.4)
[✓] Chrome - develop for the web
[✓] Connected device (3 available)
[✓] Network resources

Activity

  1. yogeshj26 commented on Jan 13, 2026

    @yogeshj26

    Any updates on the solution of the issue. ?? I am too facing the issue. Lat long of one location also clubs address of other location

  2. yusufkecer commented on Jan 13, 2026

    @yusufkecer
    Author

    No, the same problem exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions