Hi,
So I had the basic functionality of my app totally working using the Bubble Google Places plugin, however, I need some types of information for places that aren’t available with the bubble plugin.
Basically, what I need to happen is for a user to select a “trip” that they’ve already created, which has a location associated with it (an “address” such as “New York, NY”).
When the user selects this “trip” and enters a keyword into the search box, the map will do a nearby search for that area.
Then, the user can select a marker, and add that place to their “trip”.
The problem is that with the Google Places API, at least two different calls need to be made. First, a call needs to be made to do a nearby search, which will return a “place id”. The problem is that this call requires a “location” which is a latitude/ longitude. I can’t figure out how to convert the “address” that the user enters into coordinates. https://maps.googleapis.com/maps/api/place/nearbysearch/json
The second call is made to retrieve the place details, using the place id.
https://maps.googleapis.com/maps/api/place/details/json
Does anyone have any experience with this or any ideas on how this can be done? I think that it might require a call with the Geocoding API, but I can’t figure out how to link it all together.
Another possibility that I thought of was to somehow use Bubble’s plugin to search for and select the place, and then the Places API to retrieve all of the details.
Thank you so much!