Skip to content Skip to sidebar Skip to footer

Places Autocomplete Api To Get Gps Coordinates From Address Entered

I have an address field in my app where the user needs to enter the required address. I have used google Geocoder to get the GPS coordinates of the address . But now I want to make

Solution 1:

You simply use the Place Details part of the Places API where you get the actual place from the reference in each suggestion using the "reference" value. For example:

https://maps.googleapis.com/maps/api/place/details/json?reference=CiQYAAAA0Q_JA...kT3ufVLDDvTQsOwZ_tc&sensor=true&key=AddYourOwnKeyHere

This will give you information about the place including its coordinates (point for a specific location, bounds for an area).

Post a Comment for "Places Autocomplete Api To Get Gps Coordinates From Address Entered"