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?
Asked
Active
Viewed 285 times
2
-
i just detect that the way in which the address is written(only in iOS, Android always work well) can cause no response to be returned, for example: when searching for an address like this: "carrera 9#73-12, Bogota" the response is null, but if you use an abbreviation and search for: "cra 9# 73-12, Bogota" then it returns the gps location, the problem that I find now is that those gps locations are sometimes not correct – ALEXANDER LOZANO Oct 11 '22 at 20:56
1 Answers
0
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.

miguev
- 4,481
- 21
- 41