Flutter Geocoding iOS locationFromAddress always return empty list

578 views Asked by At

I'm using the function locationFromAddress from plugin https://pub.dev/packages/geocoding. sending the same info (address, city) in both Android and iOS, android return the right coordinates(lat, long) but iOS(real device) always returns Null, although the placemarkFromCoordinates function does works fine in both(Android-iOS), What could be happening?

2

There are 2 answers

0
miguev On

The issue appears to be coming from the geocodeAddressString function in the iOS CLGeocoder, which is what pub.dev/packages/geocoding uses to geocode addresses in iOS. This would use an entirely different service than the Android Geocoder, thus yielding sometimes very different results.

I suggest you take your questions and concerns about the iOS Geocoder to the Apple Developer Forums where other developers may be able to help.

0
Mike McP On

I just reported this issue:

this address: "LHR - Heathrow Terminal 4, Sheffield Road, Longford, Hounslow, UK" works on Android iOs returns "Could not find any result for the supplied address or coordinates."

but this address "Birmingham Airport (BHX), Trident Road, Birmingham, UK" works on both hope that helps