flutter-geolocator icon indicating copy to clipboard operation
flutter-geolocator copied to clipboard

isoCountryCode not working

Open yvermeire-icco opened this issue 7 years ago • 4 comments

The placemark object doesn't display the isoCountryCode

Expected behavior For instance: While using lat 4.634581 and long -74.107123 (this is the city Bogota in Colombia), the isoCountryCode should return "CO" as this is the iso code for Colombia. Instead, it returns an empty string.

Reproduction steps

  1. Get current position from GPS
  2. Get placemark from position

Configuration Version: ^4.0.3

Platform 📱 iOS [ x ] 🤖 Android

Can it please be clarified why the isoCountryCode isn't showed?

Thank you in advance :)

yvermeire-icco avatar May 22 '19 08:05 yvermeire-icco

@yvermeire-icco are you experiencing this on Android, iOS or both platforms?

mvanbeusekom avatar May 22 '19 08:05 mvanbeusekom

@mvanbeusekom Currently only on Android, I haven't tested it on iOS yet!

yvermeire-icco avatar May 22 '19 09:05 yvermeire-icco

Hey Yvermeire-icco,

I have tested this and took a street around the same longnitude & lattitude and when I test this location I get the following result:

image

Could you test this again and see if it is fixed?

ChiefMax avatar Jul 16 '19 09:07 ChiefMax

@ChiefMax Hi Max, I tested it with three different countries and can confirm that it is working properly. Thank you for fixing it!

yvermeire-icco avatar Jul 16 '19 11:07 yvermeire-icco