wellyshen / use-places-autocomplete

😎 📍 React hook for Google Maps Places Autocomplete.
https://use-places-autocomplete.netlify.app
MIT License
1.26k stars 65 forks source link

Reverse geocoding #978

Open rgbskills opened 2 years ago

rgbskills commented 2 years ago

Us there any way I can convert lat and lng in to an address?

Here are the docs for this: https://developers.google.com/maps/documentation/geocoding/requests-reverse-geocoding

wellyshen commented 2 years ago

@rgbskills Seems we haven't supported this utility yet, but we can achieve that by following this example. And yea a PR is always welcome 😎

I think you can get the address by this hook already, why do you need the reverse geocoding? What's the use case?