# Vehicle Heading & Kinematics Engine AI Agent Connect

> Vehicle Heading & Kinematics Engine provides a mathematical engine to extract movement data from GPS sequences. Your agent can calculate Course Over Ground, Speed Over Ground, and turn rates using geographic or projected coordinate models. It handles everything from raw movement vectors to high-level path accuracy analysis.

## Overview
- **Category:** mathematics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_pd2908LwNtmLwZf1s1O585Chw84sBPKrcZQyugjG/ai-agent-connect
- **Tags:** gps, kinematics, telemetry, navigation, geospatial

## Description

You can feed raw GPS telemetry directly to your AI client to get immediate kinematic insights. This MCP handles the heavy math of converting latitude, longitude, and timestamps into actionable movement data. Whether you are working with geographic models or projected coordinates, your agent can derive precise Course Over Ground (COG) and Speed Over Ground (SOG) values. 

You can use it to check how accurately a vehicle followed a planned route by comparing actual positions against predicted ones. It also lets you pull specific movement vectors for individual segments or get a broad summary of directional changes and total movement. Instead of writing custom math scripts, you give your agent the telemetry data and let it handle the calculations.

## Tools

### analyze_track_residuals
This tool evaluates path accuracy by comparing actual positions to predicted ones. It requires at least three data points to function.

### calculate_track_kinematics
This tool calculates primary movement metrics like COG, SOG, and turn rates from a sequence of vehicle positions.

### get_heading_summary
This tool provides a high-level overview of directional changes and total movement characteristics for a track.

### get_interval_vectors
This tool extracts raw movement vectors, including magnitude and direction, for each segment in a sequence.

## Prompt Examples

**Prompt:** 
```
Calculate the kinematics for these positions: [{'lat': 40.7128, 'lon': -74.0060, 'timestamp': '2023-10-01T12:00:00Z'}, {'lat': 40.7138, 'lon': -74.0070, 'timestamp': '2023-10-01T12:00:10Z'}] using the geographic model.
```

**Response:** 
```
The interval duration is 10 seconds, the course over ground is 225 degrees, the speed over ground is 12.5 m/s, and the turn rate is 0 degrees per second.
```

**Prompt:** 
```
Give me a summary of the movement for this track: [{'lat': 34.0522, 'lon': -118.2437, 'timestamp': '2023-10-01T10:00:00Z'}, {'lat': 34.0532, 'lon': -118.2447, 'timestamp': '2023-10-01T10:00:30Z'}] using the projected model.
```

**Response:** 
```
The total distance traveled is 145 meters, the average speed is 4.83 m/s, the total heading change is 0 degrees, and the net heading change is 0 degrees.
```

**Prompt:** 
```
Extract the movement vectors for these points: [{'lat': 51.5074, 'lon': -0.1278, 'timestamp': '2023-10-01T08:00:00Z'}, {'lat': 51.5084, 'lon': -0.1288, 'timestamp': '2023-10-01T08:00:05Z'}] using the geographic model.
```

**Response:** 
```
The movement vector for the segment has a magnitude of 112 meters and a bearing of 225 degrees.
```

## Capabilities

### Kinematic Derivation
Your agent calculates COG, SOG, and turn rates from GPS sequences.

### Path Accuracy Assessment
Your agent compares actual positions to predicted positions to find residuals.

### Vector Extraction
Your agent pulls magnitude and direction for each movement segment.

### Movement Summarization
Your agent generates high-level overviews of directional changes and total movement.

### Coordinate Modeling
The engine supports both geographic and projected coordinate models.

## Use Cases

### Fleet Route Auditing
Compare actual vehicle paths against planned routes to check for deviations.

### Telemetry Data Processing
Convert large sets of GPS points into structured speed and heading data.

### Navigation Accuracy Testing
Use residual analysis to see how well a vehicle's actual path matches its predicted path.

### Movement Pattern Analysis
Get high-level summaries of how a vehicle changes direction over time.

## Benefits

- Eliminates the need to write custom kinematic math scripts.
- Provides instant movement vectors from raw timestamped coordinates.
- Supports both geographic and projected coordinate math models.
- Automates path accuracy checks using residual analysis.

## How It Works

Connecting this MCP to your client gives your agent immediate access to a specialized math engine.

1. Connect your MCP-compatible client to Vinkius.
2. Provide your agent with a sequence of GPS telemetry points.
3. Specify whether to use a geographic or projected coordinate model.
4. Your agent calls the appropriate tool to process the data.
5. Receive precise kinematic metrics or movement summaries.

## Frequently Asked Questions

**What kind of data does this MCP need?**
It needs sequential GPS telemetry, specifically latitude, longitude, and timestamps.

**Can I use this with Claude or Cursor?**
Yes, any MCP-compatible client like Claude, Cursor, or Windsurf can use this MCP once connected via Vinkius.

**How do I check if a vehicle stayed on its path?**
You can use the analyze_track_residuals tool to compare actual positions against predicted positions.

**Does it support different coordinate models?**
Yes, the engine supports both geographic and projected coordinate models for its calculations.

**What metrics can your agent calculate?**
Your agent can calculate Course Over Ground, Speed Over Ground, turn rates, and movement vectors.

**What is the difference between geographic and projected models?**
Geographic models use spherical or ellipsoidal math (like Haversine) to calculate distance directly from coordinates, while projected models convert coordinates to a flat 2D plane for linear calculations.

**How many points are required to analyze track residuals?**
The `analyze_track_residuals` tool requires at least 3 points to establish a velocity vector and predict the subsequent position.

**Can I calculate turn rates for the very first movement segment?**
No, the first interval in a sequence cannot have a turn rate because there is no preceding heading to compare against.
