New to Kendo UI for jQuery? Start a free 30-day trial

Calculates the great-circle distance to the given destination in meters.

Parameters:destinationkendo.dataviz.map.Location

The destination location.

bearingNumber

The bearing to the destination in decimal degrees.

Returns:Number

The distance to the specified location in meters.

<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>
Not finding the help you need?
Contact Support