How is distance calculated on the platform

How is distance calculated on the platform

Calculation Logic


The platform calculates the distance using the standard Haversine formula. This formula is extremely accurate and is used widely to calculate the distances between two locations on Earth.  The Haversine formula calculates the shortest distance between two points on the surface of a sphere, given their longitudes and latitudes. This formula is especially useful in navigation, including calculating distances for GPS technology. It accounts for the Earth's curvature, making it more accurate for long distances than simple straight-line calculations.


Haversine Formula 

The Haversine formula is perhaps the first equation to consider when understanding how to calculate distances on a sphere. The word "Haversine" comes from the function:


d=2arcsin(sin2(2Δϕ)+cos(ϕ1)cos(ϕ2)sin2(2Δλ))

where d is the distance between the two points (along the surface of the sphere), r is the radius of the sphere (Earth in this context), �1ϕ1 and �2ϕ2 are the latitudes of the two points, Δ�Δϕ is the difference between the latitudes, Δ�Δλ is the difference between the longitudes of the two points, and all angles are in radians. This formula is crucial for calculating accurate distances over the Earth's surface.

    • Related Articles

    • Raising and tracking issues through the platform

      Q. How do I raise a ticket? Step 1: Select the ‘Support’ module from the side navigation menu, and click on ‘Helpdesk’. A dashboard will appear with all your past support tickets. Step 2: To raise a new support ticket, click ‘New Ticket’ on the ...
    • Straight Lines on the Map

      There are several times when you will see straight lines on the map instead of the actual path travelled by your vehicle. The straight line can pass through buildings, and doesn't follow the exact road or path taken by the vehicle. A straight line ...
    • My vehicle is offline

      It is normal for the platform to show a particular vehicle as offline temporarily. The platform will show a vehicle as offline if the device has not sent any data packet to our server in last few minutes. The platform also shows the time when the ...
    • User Management

      USER MANAGEMENT User Management can be used to create multiple users within the organization with certain access permission rights. Admin Users can use the standard roles available on the platform or can create multiple Roles based on the ...
    • How does a GPS device work

      A GPS (Global Positioning System) device works by communicating with a network of satellites that orbit the Earth. Here's a simplified explanation of the process: Satellite Network The GPS system relies on around 31 satellites orbiting the Earth, ...