calculate_distance
Calculate the exact geodesic distance between two coordinates on Earth. Uses the WGS84 ellipsoid model to return accurate distances in meters and miles.
Instructions
Calculate the exact geodesic distance between two points on Earth's surface. Uses the WGS84 ellipsoid model for high accuracy. No dataset needed. Returns distance in both meters and miles.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat1 | Yes | Latitude of first point | |
| lng1 | Yes | Longitude of first point | |
| lat2 | Yes | Latitude of second point | |
| lng2 | Yes | Longitude of second point |