Be able to type in Verizon Center and get the map to place a marker on it.
I’m guessing the API can only search for places that are near where you have the map centered?
I keep trying to search for Verizon Center in the search bar and nothing comes up. Does the Bubble integration with the API only return certain places from its library. @NigelG I saw you mentioned this in another post but wanted to confirm.
Yes, I might need to refresh my memory. But ISTR that we it uses the “Radius” search.
Bubble mapping has got a lot of love overnight it seems
Very excited by this, so will dig up my mothballed locations project and have a look.
Google Places and the Address Search are not the same. At the moment the forum app doesn’t have the Places API key filled in, so it won’t work. I have added mine for now.
Do you want to search address for Verizon Centre ? Or Google Places ?
You can’t type ahead search in google places like you can with addresses.
So, the bottom map shows how you can search for Verizon Center (how long did it take me searching for CentRE and getting frustrated ) … within 100 miles of Washington, DC.
Above I was just looking at how you could have a list of Google Places pulled out as you type, then you can select one. That is about as close to how you started I think.
In terms of Q1, centering the map on DC. That is done by setting the map, via Place to Washington, DC.
Then the workflow action on the input field overrides this with the search results.
“Above I was just looking at how you could have a list of Google Places pulled out as you type, then you can select one. That is about as close to how you started I think.”
Did you say this because its not possible to use a search box that has a drop down menu? Please see the Search Box I put in the forum. I can’t seem to get the search box to pair up to the map (even when I delete the text box).
I can search the left for the address, but not the place.
The type ahead search works on addresses, and things, but not on an API.
So we can’t type Verizon into a search box and see “Verizon Center” come up as a Google Place. We would have to use a repeating group and select from that.
Ah that makes a lot of sense, thanks for explaining that. It looks like the repeating groups is the best solution for now.
@emmanuel is there any way to combine both Geocoding and Places API into one search box that has the “type ahead” feature Nigel mentioned?
Would Blockspring be able to help with this? Don’t know too much about them and if they only deal with plugins for spreadsheets. Would be happy to reach out to them if need be. Please advise.
Not currently. The Search Box is a native Bubble element, and it’s a bit tricky to have different data sources. We’ll look into adding more things, but currently it’s only Places API for addresses.
Blockspring blocks won’t be plugged to the autocomplete element, so it won’t help there. But with an input and a repeating group you can have a similar UX and then you can display what you want in ths list (and merge two data sources in the block).