# Route Replay Comparison Calculator AI Agent Connect

> Route Replay Comparison Calculator MCP lets your AI client analyze vehicle telemetry data by aligning different journeys. It calculates precise deltas for speed, elevation, energy use, and more. You can sync trips by specific waypoints or timestamps to see exactly where one route diverged from another.

## Overview
- **Category:** analytics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_9qHuOqv3Dcpg8VBY3C1kWnia4dSANh7YZqAv44q4/ai-agent-connect
- **Tags:** vehicle, route, telemetry, comparison, logistics

## Description

You can now use your AI agent to perform deep telemetry analysis without manual data crunching. This MCP acts as a specialized engine for evaluating differences between multiple vehicle replays. Instead of looking at two separate logs and guessing why one trip used more energy, you can ask your agent to align the journeys spatially or temporally. 

By synchronizing trips, the MCP calculates the exact deltas for distance, time, speed, heading, elevation, and energy consumption. You can anchor comparisons at specific waypoints to see how a vehicle performed at a certain station, or use temporal synchronization to compare how two vehicles handled the same moment in time. If you need to zoom in on a specific stretch of road, you can pull granular segment data. It's a direct way to turn raw telemetry logs into actionable performance insights through your preferred AI client.

## Tools

### calculate_route_aggregates
This tool provides a high-level summary of the differences between two routes across the entire trip duration.

### compare_replays_by_station
This tool compares multiple vehicle replays by aligning them at specific, named stations or waypoints.

### compare_replays_by_timestamp
This tool compares multiple vehicle replays by aligning them based on the closest temporal synchronization.

### get_segment_deltas
This tool calculates the difference in performance metrics between two routes over specific segments of the journey.

## Prompt Examples

**Prompt:** 
```
Compare route R-101 and R-102 using station IDs 'ST-01' and 'ST-02'.
```

**Response:** 
```
At station ST-01, the distance delta is 15 meters and energy delta is 0.5 kWh. At ST-02, there is a time delay of 12 seconds.
```

**Prompt:** 
```
Give me a summary of the differences between baseline route B-500 and comparison route C-600.
```

**Response:** 
```
The summary shows a distance difference of 2.4 km, a duration difference of 180 seconds, and an energy difference of 1.2 kWh.
```

**Prompt:** 
```
What are the speed and elevation deltas for segments 5 through 10 of route R-200 vs R-201?
```

**Response:** 
```
For segments 5-10, the average speed delta is 2.5 km/h and the maximum elevation delta is 4.2 meters.
```

## Capabilities

### Spatial Alignment
Your agent uses station IDs to anchor comparisons at specific waypoints.

### Temporal Synchronization
Your agent aligns different replays based on the closest matching timestamps.

### Granular Segment Analysis
Your agent calculates performance deltas for specific stretches of a journey.

### Aggregate Summaries
The MCP provides total trip differences for distance, time, and energy.

### Multi-Metric Deltas
The engine calculates differences in speed, heading, elevation, and energy consumption.

## Use Cases

### Driver Behavior Analysis
Compare two different drivers on the same route to see differences in energy use and speed.

### EV Efficiency Testing
Analyze how elevation changes impact energy consumption deltas between different trips.

### Route Optimization
Identify specific segments where a new route deviates significantly from a baseline in terms of time or distance.

### Waypoint Performance Checks
Use station IDs to see how vehicle performance varies at specific locations along a path.

## Benefits

- Eliminates manual calculation of telemetry deltas.
- Synchronizes disparate trip logs through spatial or temporal alignment.
- Provides precise metrics for energy, speed, and elevation.
- Enables granular inspection of specific journey segments.

## How It Works

You connect the MCP to your AI client and start querying telemetry data immediately.

1. Connect your AI client to the Vinkius-hosted MCP.
2. Provide the telemetry replay data to your agent.
3. Ask your agent to compare routes using stations, timestamps, or segments.
4. Receive precise delta calculations for speed, energy, and more.

## Frequently Asked Questions

**How do I compare two vehicle trips?**
You can ask your AI client to compare them by station IDs, by matching timestamps, or by requesting a high-level aggregate summary of the entire trip.

**What metrics can the MCP calculate?**
The MCP calculates deltas for distance, time, speed, heading, elevation, and energy consumption.

**Can I look at specific parts of a route?**
Yes, you can use the segment delta tool to get performance differences for specific parts of a journey.

**Which AI clients can use this MCP?**
This MCP works with any compatible client, including Claude, Cursor, Windsurf, and VS Code.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you, so it is ready to use as soon as you connect your client.

**How do I align two different vehicle routes?**
You can use `compare_replays_by_station` to align routes at specific shared waypoints, or `compare_replays_by_timestamp` to synchronize them based on a time window.

**What metrics can be compared between routes?**
The engine calculates differences in distance, time, speed, heading, elevation, energy consumption, and stop counts.

**Can I analyze specific parts of a journey?**
Yes, use `get_segment_deltas` to request granular reports for specific segment indices within the route.
