[Bug]: Incorrect district/neighborhood returned for coordinates in Istanbul, Turkey
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
No source file or test is named. Start by reproducing the Android result with geocoding 4.0.0 at 41.030011, 28.6397551, then trace the Android geocoding path and inspect how administrative fields are populated. Done means the location reports Esenyurt rather than Büyükçekmece, or the platform limitation is clearly documented.
Written by the indexing model from the issue text.
Description
Please check the following before submitting a new issue.
- I have searched the existing issues.
- I have carefully read the documentation and verified I have added the required platform specific configuration.
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
- Dominant language
- Dart
- Stars
- 154
- Forks
- 94
- Avg merge
- 1h 21m
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Baseflow/flutter-geocoding
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Baseflow/flutter-geocoding#337 · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Baseflow/flutter-geocoding#332 ·
Maintainers usually reply within 1 day
-
[Bug]: `Geocoding(locale: ...)` has no effect – locale is not forwarded to `_fromPlatformCreationParams`May be free again @AmrWalidi claimed this 27 days ago, and no pull request is open. Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Baseflow/flutter-geocoding#324 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 84/100
Baseflow/flutter-geocoding#311 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Baseflow/flutter-geocoding#309 ·
Maintainers usually reply within 1 day
All issues in Baseflow/flutter-geocoding
Similar issues
-
BUG: App crashes on iOS when initializing speech-to-text due to missing microphone and speech recognition keys in Info.plistPossibly taken @AyushSrivastava1818 claimed this today. Openbug enhancement
Difficulty 1/5 Under an hour Newbie friendliness 78/100
AOSSIE-Org/Ell-ena#365 · 2 comments ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
spotiflacapp/SpotiFLAC-Mobile#995 ·
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
VeryGoodOpenSource/vgv-ai-flutter-plugin#219 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
cucumber/gherkin#766 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Anxcye/anx-reader#1024 ·