I’m using Google Maps’ autocomplete feature for geocoding. It seems to return a lot of data, but not the lat/lng. Is there a way to get this information? I’d like to pass it back to my backend application for further processing.
I’m using Google Maps’ autocomplete feature for geocoding. It seems to return a lot
Share
OK, I’m not familiar with Places or Autocomplete. But it looks like what you are looking for is
To demonstrate I took this example and added the line above to create this JSFiddle where you can enter the place name and when it’s selected, an infowindow with the LatLng is created.
In particular it listens to the user’s selection, then refreshes the infowindow.