flutter-geocoding
                                
                                 flutter-geocoding copied to clipboard
                                
                                    flutter-geocoding copied to clipboard
                            
                            
                            
                        locationFromAddress not working on iOS but works well in Android
💬 Questions and Help
I'm using the function locationFromAddress with the same info (address, city) in both Android and iOS, android return the right coordinates but iOS(real device) returns Null, although the placemarkFromCoordinates function does work fine in both(Android-iOS), What could be happening?
I've experienced the same issue, although it doesn't always happen on iOS. The method locationFromAddress works every time on Android. And most of the times on iOS, which makes me even more intrigued by the situation.
i just detect that the way in which the address is written 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
In my case it's really not possible to change the address supplied to the locationFromAddress method. What I did instead was capture the NoResponseFoundExecption and call the method again using this time the zip code instead. Although not ideal, as its location return isn't as precise, it fits better with my needs.
I need help we have same issue :(
my locationFromAddress works well on android, but gives error PLATFORMEXCEPTION :....... supplied address or coordinates not found...
hey, check your current format to call the function, thats was my main problem,
i just detect that the way in which the address is written 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
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
Dear @alexlovar,
Can you give me an example?
Dear @mmcp42,
Your location LHR - Heathrow Terminal 4, Sheffield Road, Longford, Hounslow, UK seems to work fine in the example app. (iOS).
Via the following url you can test several addresses: https://developers.google.com/maps/documentation/geocoding/overview#GeocodingResponses.
Without additional information, we are unfortunately not able to resolve this issue. Therefore, we reluctantly closed this issue for now. If you run into this issue later, feel free to file a new issue with a reference to this issue. Add a description of detailed steps to reproduce, expected and current behaviour, logs and the output of 'flutter doctor -v'. Thanks for your contribution.