Oh, and by the way. I already have a DB set up with geopoint column in geopint format.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Oh, and by the way. I already have a DB set up with geopoint column in geopint format.
Hi --
To save geo point in DB with geoPoint type you should do:
ol
liCreate update service./li
liNavigate to data tab./li
liClick "Edit mappings"./li
liNavigate to the "Request" tab./li
liFind your geoLocation field parameter. And click "Add JS"/"Edit JS"./li
liJS Editor appears. Insert the following code:
precode
//You should change these constants to your dynamic data. For example using localStorage variables.
var latitude = "44"
var longitude = "12"
return [latitude, longitude];/code/pre
/li
/ol
That's all. After the update service invokes you will update your geoPoint field type with values you have passed to.
Regards.