What is the coordinate system for the values obtained in MDriven ViewModel variables (vLatitude and vLongitude)?
Asked
Active
Viewed 51 times
1
-
Should be vClientLongitude and vClientLatitude – Rolf Carlson Feb 01 '18 at 18:40
1 Answers
2
The coordinates from the Angular html5 web client for MDriven are taken from the browser like this:
<script>
var x = document.getElementById("demo");
function getLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
} else {
x.innerHTML = "Geolocation is not supported by this browser.";
}
}
function showPosition(position) {
x.innerHTML = "Latitude: " + position.coords.latitude +
"<br>Longitude: " + position.coords.longitude;
}
</script>
The coordinates are floating point numbers

Hans Karlsen
- 2,275
- 1
- 15
- 15