Archived from the Bravo community forum (2021–2026). Some answers may refer to older versions of Bravo.
Good morning, evening, ladies and gents!! Many thanks to the ones who could help.
My goal is to show informations concerning the city the user lives in.
To do so, I require location on a page by using a French public service with this request:
https://geo.api.gouv.fr/communes?lat=${device.latitude}&lon=${device.longitude}&fields=nom%2Ccode
I obtain -> {nom} and {code}. I can show the result on a page, everything is good.
Then what is the proper request to find info related to this city in my Airtable base?
I look into the table [cities]. There is a column {nom}. But I don’t have the appropriate request.
Here is what I tried:
https://api.airtable.com/v0/[myTable]/cities/${nom} -> of course 404
https://api.airtable.com/v0/\[myTable\]/cities?filterByFormula=FIND("${nom}",nom) -> works with test value and returns a record in debug section, but returns a list in the app.
https://api.airtable.com/v0/\[myTable\]/cities?filterByFormula=search("${nom}"%2Carrayjoin(nom)) -> works with test value and returns a record in debug section, but returns a list in the app.
Please, let me know what's the request i should have.
All the best.
Brice
4 replies
Wrote something in this thread and want it removed? Request removal
Ask the community on Discord
This archive is read-only. New questions, office hours and product updates now happen in the Bravo Discord.
Join the Discord