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

locationFromAddress not working on iOS but works well in Android

Open alexlovar opened this issue 3 years ago • 6 comments

💬 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?

alexlovar avatar Oct 08 '22 04:10 alexlovar

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.

hbcneto avatar Oct 11 '22 14:10 hbcneto

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

alexlovar avatar Oct 11 '22 20:10 alexlovar

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.

hbcneto avatar Oct 11 '22 21:10 hbcneto

I need help we have same issue :(

KeithBacalso avatar Oct 19 '22 06:10 KeithBacalso

my locationFromAddress works well on android, but gives error PLATFORMEXCEPTION :....... supplied address or coordinates not found...

KeithBacalso avatar Oct 19 '22 06:10 KeithBacalso

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

alexlovar avatar Oct 19 '22 22:10 alexlovar

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

mmcp42 avatar Sep 20 '23 11:09 mmcp42

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.

TimHoogstrate avatar Nov 02 '23 14:11 TimHoogstrate

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.

github-actions[bot] avatar Nov 16 '23 14:11 github-actions[bot]