Update geo_point in task
Options
Stefan Pointecker
Member ✭
hey,
I am trying to update a geo_point field after getting the coordinates via the address in a task.
Everything works fine so far but I do not see how I can create a geo_point variable to update the database entry?
I am trying to update a geo_point field after getting the coordinates via the address in a task.
Everything works fine so far but I do not see how I can create a geo_point variable to update the database entry?
Comments
-
Hey, Stefan. You don't need to create a special type of variable to update a geo_point -- this is basically just storing a latitude and a longitude. In this example, I'm querying a record with a geo_point field, and updating a variable with a new value.
[CleanShot 2022-07-19 at 12.31.53.png]In my update variable step, this is how I'm changing the geo_point data.[CleanShot 2022-07-19 at 12.29.59.png] -
hey thanks for your response.
in my case I am editing a record which has no geo_point at the beginning and a new one should be stored to this record.
So do I need to create the whole object with the type: point too?[Bildschirmfoto 2022-07-20 um 14.46.20.png] -
Update
Edit record query (home has a property position - the geo_point)[Bildschirmfoto 2022-07-20 um 15.06.20.png]
Debugger result
The message does not really makes sense to me to be honest.[Bildschirmfoto 2022-07-20 um 15.05.31.png]Debugger info[Bildschirmfoto 2022-07-20 um 15.05.14.png] -
Okay, I think I got it working by adding the whole geo_point structure into the edit record step:
[Bildschirmfoto 2022-07-20 um 15.12.04.png]
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