# Spot Distance Calculation AI Agent Connect

> Calculate great-circle distances, bearings, and travel times using spherical geometry.

## Overview
- **Category:** utilities
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_QhPJOjW3WKTjXmOANn9EpAppVWBpTdhMrIt6WYrL/ai-agent-connect
- **Tags:** haversine, gps, distance, bearing, travel-time

## Description

This MCP server provides precise navigational calculations based on the Haversine formula. It allows AI agents to determine the shortest distance between two geographic points, calculate the required compass bearing, and estimate travel time based on speed. Use `get_distance_and_bearing` to find distance and direction, `calculate_estimated_travel_time` for duration, `verify_navigation_feasibility` to check heading constraints, and `get_distance_to_landmark_collection` to find the nearest point in a list.

## Tools

### calculate_estimated_travel_time
Calculates the estimated travel time in minutes

### get_distance_and_bearing
Calculates the great-circle distance and bearing between two points

### get_distance_to_landmark_collection
Finds the closest landmark in a collection

### verify_navigation_feasibility
Verifies if the target bearing is within the allowed deviation

## Prompt Examples

**Prompt:** 
```
How far is it from latitude 40.7128, longitude -74.0060 to latitude 34.0522, longitude -118.2437?
```

**Response:** 
```
The distance is approximately 3935.74 km with a bearing of 259.32 degrees.
```

**Prompt:** 
```
If I am 100 km away and traveling at 50 kph, how long will it take to arrive?
```

**Response:** 
```
It will take 120 minutes to reach your destination.
```

**Prompt:** 
```
I am facing 90 degrees. Is it feasible to reach a target at 100 degrees if my max deviation is 15 degrees?
```

**Response:** 
```
No, the angular difference is 10 degrees, which is within the 15 degree limit, so it is feasible.
```

## Frequently Asked Questions

**How is the distance calculated?**
The distance is calculated using the Haversine formula, which accounts for the Earth's curvature to provide the shortest great-circle distance.

**Can I find the closest landmark from a list?**
Yes, you can use the `get_distance_to_landmark_collection` tool to identify the nearest landmark from a provided array of coordinates.

**Does it support bearing calculations?**
Yes, the `get_distance_and_bearing` tool provides the compass bearing (0-360 degrees) required to reach a target destination.
