how to get autocomplete address with lat,lng in the given raduis
I’m using this :
how to get google map js api get lat, lng with selected address
This code provides an address autocomplete feature using the Google Places API. When a user types in the “from” field, it shows address suggestions. Upon selecting an address, it needs to retrieves and displays the latitude and longitude of the selected address, which can be used to fetch related addresses for the “to” field. The script initializes the autocomplete functionality, handles input events, fetches and displays suggestions, and processes the selected place details.