geo_distance
Calculate the great-circle distance between any two geographic coordinates. Returns results in kilometers, miles, and nautical miles for easy use.
Instructions
Calculate the great-circle distance between two geographic points using the Haversine formula. Returns distance in kilometers, miles, and nautical miles.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat1 | Yes | Latitude of the first point (-90 to 90) | |
| lat2 | Yes | Latitude of the second point (-90 to 90) | |
| lng1 | Yes | Longitude of the first point (-180 to 180) | |
| lng2 | Yes | Longitude of the second point (-180 to 180) |