One issue that I’m facing is that none of the existing api’s seem to be ‘auto complete’. I am thinking that the setup of my system vs. the api is what is wrong here instead of anything in bubble.
I would love the following to occur as the user types but…:
I can’t seem to locate an API that does this auto complete in this fashion.
It seems all the API’s out there (or at lease the ones I’ve found and tested) allow the user to input a airport code, press ‘SEARCH’ and obtain the result of that search or in my testing it responds when the field is changed in bubble as well.
That is fine on my end but I need to understand how to SAVE THE RESPONSE data in seperate fields.
Right now it keeps giving me a ‘type conflict’ it seems where the API Connection is of one ‘type’ even though I don’t think I’ve set one or am able to change it’s type vs. the field which I’m trying to populate to the database which is of the type “flight”. As you can see below I have no option for ‘flight’ it seems.
What I’m trying to do at the very least is allow the user to search by airport code which obtains a response containing all the below information and have those individual pieces of airport information saved as fields within the application’s “flight” listing thing.
It keeps asking me to go one more level in, (text) which works but only gives me ONE of the responses I need not all pieces of the response which I can break into different fields and add/make changes to ‘flight’ with…?
As you can see going one further level in and pulling the ‘airport name’ based on ICAO code is the only option i’ve got.
OK, so I think I can do it, but it is going to be very tricky to do the autocomplete.
As per the other thread, I think it is going to be a lot easier to import the list of airports and search (autocomplete) against that.
We can get a list of airport codes back from the API, and into a list (I stored it on the User). But then autocomplete doesn’t work on lists only things and the only way to create a list of things from a list (AFAIK) is to schedule an API on a list.
So in the example in the we could probably create a group of things on page load that we could autocomplete against. But that seems like quite a complicated way to do it.
Do you want to the user to be able to seach against ALL airports, or just within an particular area for that user ?
The way I see it is Autocomplete should be done natively within Bubble using a downloaded list of airport information from OurAirports.com. I just cannot get it to import.
The issue on this thread is concerning this type conflict I’m constantly facing where I cannot save individual pieces of the API response as inputs into the db. It keeps giving me the type conflict above but I have no ability to change the type so that it all works!
Hi Justincrabbe, did you ever find a solution? I work with air-port-codes.com and can assist you with setup if you need. We have made many improvements over the last few months that you might like, including adding more example documentation and sample code to help you get things working.