Edge | 124.0.0 | own | function | function (
successCallback,
errorCallback = null,
options = {}
) {
coords = {};
Object.defineProperty(coords, "latitude", {
value: scriptParameters.geoLocation.latitude,
enumerable: true,
});
Object.defineProperty(coords, "longitude", {
value: scriptParameters.geoLocation.longitude,
enumerable: true,
});
Object.defineProperty(coords, "accuracy", {
value: scriptParameters.geoLocation.accuracy,
enumerable: true,
});
Object.defineProperty(coords, "altitude", {
value: null,
enumerable: true,
});
Object.defineProperty(coords, "altitudeAccuracy", {
value: null,
enumerable: true,
});
Object.defineProperty(coords, "heading", {
value: null,
enumerable: true,
});
Object.defineProperty(coords, "speed", {
value: null,
enumerable: true,
});
pos = {};
Object.defineProperty(pos, "coords", {
value: coords,
enumerable: true,
});
Object.defineProperty(pos, "timestamp", {
value: Date.now(),
enumerable: true,
});
successCallback(pos);
} |