Query API with Geo
Options
![Knight](https://us.v-cdn.net/6037124/user_avatars/1481970.jpg)
Knight
Member ✭
Hi, I would like to under how can I pull the data based on distance
1. I have input call username, which user will supply username
2. I do a function stack to query user location based this username and I return the location data only
3. ?
4. I should add the return location data as part of my next query with distance eval.
now the problem is I m not sure what I need to do in step 3, how can I convert the return location point data into something that can be eval for distance.
1. I have input call username, which user will supply username
2. I do a function stack to query user location based this username and I return the location data only
3. ?
4. I should add the return location data as part of my next query with distance eval.
now the problem is I m not sure what I need to do in step 3, how can I convert the return location point data into something that can be eval for distance.
Comments
-
Hi have you checked out this tutorial on how to sort with geo? It might give you some insight with this use case...
https://youtu.be/XdXZRhy4v_o
-
yup i saw that and I understand, but the demo is using a geo location point as a input, my usecase is a bit diff, I getting the geo location point from another query.
How do I convert the results from a query to use in the next query within the function stack ? -
Hey Knight, pretty much just swap the input for the variable where you apply the distance filter on the eval. Just make sure you are working with a single point for the location you want to find your distance from. The distance filter will not work with an array of points there.
Here's how:
https://www.loom.com/share/b6f59140993e46d9bdf0e1390cfdd430 -
I manage to make it work with variable and sub path, thanks!
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback