destination
Calculates the great-circle distance to the given destination in meters.
Example
<script>
var newYork = new kendo.dataviz.map.Location(40.7128, -74.0060);
var destination = newYork.destination(1000, 45); // 1km at 45 degree bearing
console.log("Destination:", destination.lat, destination.lng);
console.log("Distance check:", newYork.distanceTo(destination));
</script>
Parameters
destination kendo.dataviz.map.Location
The destination location.
bearing Number
The bearing to the destination in decimal degrees.
Returns
Number The distance to the specified location in meters.
In this article