ionic3 – คำนวณระยะทางระหว่างจุด 2 จุด (latitude-longitude points)

The Haversine Formula

พารามิเตอร์

lat1, lon1: The Latitude and Longitude of point 1 (in decimal degrees)
lat2, lon2: The Latitude and Longitude of point 2 (in decimal degrees)

Link