I have a Thing called “Addresses” in Bubble with 2 columns: latitude,longitude coordinates in the first column and address in the second column.
I’d like to pass the user’s current latitude, longitude to the Bubble API to search my Addresses and return the top 8 addresses within a certain radius or the top 8 closest addresses.
I don’t see a way to do this in the Bubble documentation so it may not be possible. Does anyone have any ideas?
If not, I may have to spin up a MySql database, create an API to run this query, and then have Bubble ping the API using the API Connector whenever I need this data. However, this complicates the architecture and forces me to keep two separate databases now that must sync.
Add an action to return data from api where they key is address searching for the database where you keep your addresses and returning as a list. Then perform the search using the parameters received from the GET request.