How do I add the coordinates on a map by entering them textually in a field?
Solved! Go to Solution.
Hi @SEMARNAT,
You can do this in the XLSForm by creating a calculation based on the coordinate fields. Geopoint questions accept a space-separated set of latitude and longitude values in decimal degrees. The Geopoint defaults and calculations sections of the Survey123 documentation have more information on the accepted coordinate format.
I attached an example XLSForm with the calculation. This example uses decimal questions. If you wanted to use text questions in your calculation, you would also want to convert the question values from text to a number in the calculation by applying a number() function to each question.
You could also search for coordinates in the search bar once the geopoint question is opened.
Thanks,
- Barbara
@SEMARNAT The Lines and Polygons sample survey in Connect (also attached) has a couple examples of calculating geoshapes. You would append additional coordinate pairs with a semicolon to calculate the geoshape.
Hi @SEMARNAT,
You can do this in the XLSForm by creating a calculation based on the coordinate fields. Geopoint questions accept a space-separated set of latitude and longitude values in decimal degrees. The Geopoint defaults and calculations sections of the Survey123 documentation have more information on the accepted coordinate format.
I attached an example XLSForm with the calculation. This example uses decimal questions. If you wanted to use text questions in your calculation, you would also want to convert the question values from text to a number in the calculation by applying a number() function to each question.
You could also search for coordinates in the search bar once the geopoint question is opened.
Thanks,
- Barbara
Thank you Barbara, do yo have an example for geoshape?
Thank you Barbara, do yo have an example for geoshape?
@SEMARNAT The Lines and Polygons sample survey in Connect (also attached) has a couple examples of calculating geoshapes. You would append additional coordinate pairs with a semicolon to calculate the geoshape.
Thank you Bárbara