JSGeolocation

47 views
Skip to first unread message

Todd Johnson

unread,
Sep 28, 2025, 12:24:02 PM (6 days ago) Sep 28
to mementodatabase
I am trying to figure out how to control what is displayed in a geolocation field, the coordinates or the address.   When I choos a location on android or desktop using the map it will store the location object and display the address. I wanted to copy the address from one entry into another entry and finally determined I had to do it using coordinates. Assuming that is the only way, I figured out how to do that using info provided by 
ernst
 
To copy GPS data, I split it into lat and long and then reassemble them. This works well for me.

var ort = e.field("GPS Daten ")
var lat = ort.lat
var lng =ort.lng
var gps = lat +",""+ lng
e.set("GPS neu ",gps)

Thank you for that!

Is there a way to control the objects appearance to show the address like it does when I enter a location using the built in map, instead of the coordinates that I apparently have to use when copying the location from one entry to another? Besides extracting the address and displaying it in a text field.
Thanks in advance!
Todd

Todd Johnson

unread,
Sep 28, 2025, 12:27:48 PM (6 days ago) Sep 28
to mementodatabase
Is there a way to control the location object to show the address like it did when I enter a position in map, instead of the coordinates, I have to use to copy the location from one to one entry to another? Other than extracting the address and display it in a text field.

Not sure why some of my words get changed when posting.

Todd Johnson

unread,
Sep 28, 2025, 12:29:44 PM (6 days ago) Sep 28
to mementodatabase
Again, not sure if this is going through translation to another language and back or what. Sorry about the wording.

Er Mo

unread,
Sep 28, 2025, 4:00:22 PM (6 days ago) Sep 28
to mementodatabase
Hallo
In den Einstellungen des Feldtyp " Standort " gibt es die Möglichkeit die Adresse oder die GPS Daten anzuzeigen . Unter Android --> Primärer Wert

Zu Übersetzung : Da ich kein Englich kann und somit die Übersetzung auch nicht Kontrollieren kann send ich den Text in meiner Muttersprache mit , so kann jeder selbst übersetzen .


Hello
In the settings for the "Location" field type, there is the option to display the address or GPS data. On Android --> Primary Value

Regarding translation: Since I don't speak English and therefore can't check the translation, I'm sending the text in my native language so everyone can translate it themselves.

Ernst

Todd Johnson

unread,
Sep 29, 2025, 9:52:15 AM (5 days ago) Sep 29
to mementodatabase
Thank you very much!
Todd
Reply all
Reply to author
Forward
0 new messages