How to creat a point from existing lat long data
![Bzarbo](https://us.v-cdn.net/6037124/uploads/userpics/ANWFA6VG4S8O/n5N84C0DZM916.jpg)
I have a table of "hydrants" within my xano database with about 8000 records and among the other hydrant properties there's a lat field and a long field for each hydrant. I have created a field called "hydrant locations".
What I am trying to do is to build a function stack that pulls in the already existing "hydrant" lat and long and then updates applies it as a "geo_point" in the "hydrant locations" field for that same hydrant.
I have been able to successfully do this with a single "get record" by using the "hydrants_id" as an input. But I am trying to not have to change the input manually every time I debug and run for 8000 records.
Answers
-
Hi @Bzarbo,
Here's a step-by-step guide on how you can go about that. Let me know if you have additional questions.
A sample of the JSON that is stored in the geopoint field type.
{
"type": "point",
"data": {
"lng": 111,
"lat": 111
}
}
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