Hey,
I’m currently doing an API call from an external tool to my Bubble database to ring me the records near my geolocation (lat/long).
So far everything is working. However, I would like to ask in this API call to sort by distance from the closest to the farthest.
I have searched a lot and I can’t find how to do it.
I put below the detail of the API call that I realize. Do you have an idea of what I should add to do my sorting correctly?
Thanks for your help
.../obj/com..........?api_token=KEYAPIGOOGLE&constraints=[{"key":"Geo_address","constraint_type":"geographic_search","value":{"range":10,"origin_address":"{{lat}},{{long}}"}}]