- Posts: 1
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Not true. You can use the HTML5 Geolocation API to load a short-text question with location coordinates.With offline surveys you can also save GPS coordinates, which is not possible with a normal LS online survey.
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { function recordPosition(position) { // Record current position $('#question{QID} input[type="text"]').val(position.coords.latitude+', '+position.coords.longitude); } // Position request navigator.geolocation.getCurrentPosition(recordPosition); }); </script>