Can Pulldata geopoint pull lat/long in dms

311
2
Jump to solution
04-19-2023 08:07 AM
NatalieSlayden
New Contributor III

Hi, does anyone know if the pulldata function for geopoint in Survey123 can pull lat and long in dms rather than just decimal degrees? 

0 Kudos
1 Solution

Accepted Solutions
ZacharySutherby
Esri Regular Contributor

Hello @NatalieSlayden

You can use pulldata("@geopoint", ${location}, "DMS") to return the geopoint as degrees, minutes, and seconds. This function returns a JSON object so that can be parsed in two ways:

You can extract specific attributes using the following syntax ex. pulldata("@geopoint", ${location}, "DMS.latitudeText") returns "39°57'36.3\"N" for example. 

You can also use pulldata("@json") if you want to separate the calculations. 

Please see the Coordinate format section of the Geopoints documentation for more information. 

 

Thank you,
Zach

View solution in original post

0 Kudos
2 Replies
ZacharySutherby
Esri Regular Contributor

Hello @NatalieSlayden

You can use pulldata("@geopoint", ${location}, "DMS") to return the geopoint as degrees, minutes, and seconds. This function returns a JSON object so that can be parsed in two ways:

You can extract specific attributes using the following syntax ex. pulldata("@geopoint", ${location}, "DMS.latitudeText") returns "39°57'36.3\"N" for example. 

You can also use pulldata("@json") if you want to separate the calculations. 

Please see the Coordinate format section of the Geopoints documentation for more information. 

 

Thank you,
Zach
0 Kudos
NatalieSlayden
New Contributor III

Thank you Zach!! Extremely helpful!

0 Kudos