W
W
winstan2016-05-16 19:42:57
satellite navigation
winstan, 2016-05-16 19:42:57

Apache Cordova how to get up-to-date geodata?

Apache Cordova how to get up-to-date geodata?

Updatecoord() {
        var self = this;
        console.log("Updatecoord run");

        navigator.geolocation.getCurrentPosition(
            function (position) {

                var date = new Date();
                date.setTime(position.timestamp);

                console.log(
                    'Latitude: ' + position.coords.latitude + '\n' +
                    'Longitude: ' + position.coords.longitude + '\n' +
                    'Time: ' + date
                );
                self.SaveCoord(position);
            },
            function (error) {
                console.log('code: ' + error.code + '\n' +
                    'message: ' + error.message + '\n');
            },
            {
                enableHighAccuracy: true,
                timeout: 20000,
                maximumAge: 0,
            }
        );
    };

I'm trying to get geodata like this, I get the data but they are not relevant,
as far as I understand, when you set enableHighAccuracy: true, a request like this should appear a68146cd827545c0a53ee88e1f40191f.png, but this request does not appear, tell me what to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yukhnovets, 2015-07-20
@Feaxer

Check hosting settings or write to those. support

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question