Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Get GPS Data in SSI Web 7

Dear All,

I have a simple question. Is it possible to get GPS data in SSI Web 7?

I used this formula in freeformat question below, it calculates gps on screen but not save in my data. My formula is :

<script type="text/javascript">
function geoFindMe() {
    var output = document.getElementById("out");
    if (!navigator.geolocation) {
        output.innerHTML = "<p>Geolocation is not supported by your browser</p>";
    function success(position) {
        var latitude = position.coords.latitude;
        var longitude = position.coords.longitude;
        output.innerHTML = '<p>Latitude is ' + latitude + '° Longitude is ' + longitude + '°</p>';
        var img = new Image();
        img.src = "https://maps.googleapis.com/maps/api/staticmap?center=" + latitude + "," + longitude + "&zoom=13&size=300x300&sensor=false";
    function error() {
        output.innerHTML = "Unable to retrieve your location";
    output.innerHTML = "<p>Locating…</p>";
    navigator.geolocation.getCurrentPosition(success, error);
<h2>Looking up your coordinates...</h2>
<div id="out"></div>
<input name="gps_latitude" id="gps_latitude" type="hidden" value="">
<input name="gps_longitude" id="gps_longitude" type="hidden" value="">

<script type="text/javascript">geoFindMe();</script>

Thanks all.
asked Mar 2 by verismer (260 points)
Is your free format question in fact named "gps"?  With variables named "latitude" and "longitude"?  All of these are case-sensitive.

If you open your browser's console (F12), are there any error messages when you navigate to the free format page?
Hi Zachary,

Yes, it's a free format question named gps.
Test mode in my computer , screen is below:

It calculates latitude and longtitude like below:
 Looking up your coordinates...
Latitude is 44.0887444458312° Longitude is 44.044492458988615° (Example)
But latitude 44.0888 ... and Longitude 44.0444.... is not saved in data.

Is it possible for you to send in your .ssi demonstrating the problem to support@sawtoothsoftware.com?

Your solution to the original question

Please only use this to answer the original question. Otherwise please use comments.
Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

To avoid this verification in future, please log in or register.