I've read a lot about InfoWindow
on google maps but it only says how to create an info window. What I want to do is obtain information on an already-existing place.
For example: If I use places
library, I'd make a request and it give me an object with the place name, human-readable address, latitude, longitude, etc.
I want exactly that information when I click on an already existing place. How can I achieve this?
Edit. An use case of what I want would be the following:
I am navigating on the map, zooming and panning until I find a place. If I click that place, the Map would show me its information on a InfoWindow
. That info I'd like to retrieve via a callback function.