Spent half my day on trying to confirm whether I am shitty developer or something is off in the reverse native geocoding functionality. The below code simply returns undefined:
I get what you’re trying to tell me, and I am well aware it’s an array, but the code I provided is from the official documentation. Also, if you look at the link I provided, that uses result.street as well, so… still stumped. And, just for kicks I tried getting the 0th item. No joy.
The result I get is: “The reverseGeocode address is undefined in Dublin 2” I get this with the following code:
let str : string = `The reverseGeocode address is ${result.city} in ${result.postalCode}`;
This is odd, because I’d expect postalCode to fail, as it requires higher accuracy, but the city??? Btw, if you look at the documentation, street should be possible to be returned. I am using valid coordinates I got off the Google Maps API from another app where I am using google for the doing the reverse lookup.