flutter_geocoder
flutter_geocoder copied to clipboard
Getting address size 0 with google method
Hi i am using this:
var addresses=await Geocoder.google("APIKEYHERE",language: "en").findAddressesFromCoordinates(coordinates)".
But it always return "addresses" variable size "0".
Can you please help me out why address is not getting return.
I got the same issue when using an API key that was restricted with an application restriction for an Android/iOS app, but it started to work when switching to a key with no application restriction.
Thanks @deckerst ! Did it fix it for you @deepakrana0011 ?
@aloisdeniel yes it get fix for me also . Thank you
Hi Guys! I was facing the same issue. When I switch Application Restrictions to "none" it works fine. But when I switch it back to Android/iOS the function always returns an empty array. I'm using the same API key for calling places API and it works perfectly "fine" with Application Restrictions set to Android/iOS. I've created a pull request fixing this issue here I've tested and it works perfectly fine.