You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 8, 2023. It is now read-only.
When i use two locations taken from google maps to calculate distance it always give me 0, not sure why
here is my code example
// -26.275406, 27.811755 from google maps
let thisLocation = new geolocation.Location();
thisLocation.latitude = "-26.275406";
thisLocation.longitude = "27.811755";
// -26.281879, 27.772300 from google maps
let myLocation = new geolocation.Location();
myLocation.latitude = "-26.281879";
myLocation.longitude = "27.772300";
let dist = Math.floor(geolocation.distance(myLocation, thisLocation));
this.locationDistance = `DIstance is ${dist} meters away.`;
i am using nativescript vue
testing on my android device