marlove / react-native-geocoding

MIT License
208 stars 54 forks source link

Error while geocoding #19

Closed mdelclaro closed 5 years ago

mdelclaro commented 5 years ago

It was working, but now I'm receiving this error:

message: Error from the server while geocoding. The received datas are in the error's 'origin' field. Check it for more informations.

  code: 4
  origin:Object 
    plus_code:Object 
      global_code:"4CW22222+22"
  results:Array(0) 
    length:0
  status:"ZERO_RESULTS"

Perhaps it's an error on Google's side?

mdelclaro commented 5 years ago

5 seconds after submiting this issue (I've been trying to figure it out for almost 2 hours) I realized that the emulator had some random stupid coords that were actually in the middle of the ocean... lol

No problems at all. I apologize.

darvinhuangg commented 5 years ago

Hi @mdelclaro How do you solve this? I'm running in my iOS phone and also end up in the middle of ocean, but the code itself is working in Android.

mdelclaro commented 5 years ago

@darvinhuangg are you running on the emulator or a physical device? I was running on the Android Studio emulator and there you can change the device's location. I'm not sure about iOS, sorry...

darvinhuangg commented 5 years ago

I'm running both platform on physical device. I've also checked the location in my iOS phone using maps and it gets exact coordinate location.