- LOGISTICS
- COSTING
- AUDIT
- HUMAN
Short answer
How do I calculate delivery distances with my AI?
Give your AI the latitude and longitude for your warehouse and your customer. It uses the Haversine formula to return the exact distance between those two points. You'll get precise spatial data for your routing and planning.
The outcomes.
Where your data lands.
The AI processes coordinates to produce actionable logistics data.
LOGISTICS
Route planning
The AI calculates distances between hubs and destinations. You get the raw numbers needed to map out delivery paths.
COSTING
Fuel and time estimates
By knowing the exact distance, your AI can estimate fuel usage and travel times. This helps you set accurate delivery fees.
AUDIT
Distance verification
Compare actual driver routes against calculated distances. This helps you spot discrepancies in mileage reporting.
HUMAN
Final route approval
The AI provides the math, but you decide which routes are actually viable based on traffic or road conditions.
The workflow
What your AI does when the coordinates arrive.
The AI acts as a math engine for your spatial data.
Parse coordinates
Your AI extracts the latitude and longitude from your text, spreadsheets, or messages.
calculate_distanceRun Haversine math
The AI uses the specific distance tool to compute the great-circle distance between the two points.
calculate_distanceFormat results
The AI converts the raw distance into a readable format like miles or kilometers.
calculate_distanceIntegrate data
The AI places these distances into your existing planning documents or chat logs.
calculate_distance
Try it
Copy these to start.
Use these prompts to trigger the distance calculations immediately.
Starting points
Swap the bracketed info for your actual warehouse and customer locations.
Haversine Engine Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_tzPZKmGdqvHoMb7RXzHw8mFeS5DPXafUK9XDXPVc/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — Haversine Engine capabilities are ready to use.
{
"mcpServers": {
"haversine-distance-engine-alternative-mcp": {
"url": "https://edge.vinkius.com/vk_preview_tzPZKmGdqvHoMb7RXzHw8mFeS5DPXafUK9XDXPVc/mcp"
}
}
}Calculate the distance between my warehouse at 40.7128, -74.0060 and the customer at 34.0522, -118.2437.
Using the customer list in my Google Sheet, find the distance from my central hub at 41.8781, -87.6298 to each location.
Check the distance between the delivery point in my latest Slack message and our main depot at 29.7604, -95.3698.
I have a list of coordinates in this CSV. Calculate the distance from 45.5152, -122.6784 to every point in the file.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect Haversine Distance Engine once, then ask.
One click connects this MCP to your preferred client. Your credentials stay encrypted and secure on our side.
Connect Haversine Distance Engine to your AIFAQ
How this task behaves
- 01
Does the AI calculate driving distance or straight-line distance?
It calculates the great-circle distance using the Haversine formula, which is the straight-line distance between two points on a sphere.
- 02
Can the AI account for real-time traffic?
No. This tool only calculates distance based on coordinates; it does not access live traffic or road data.
- 03
Can the AI update my delivery database automatically?
No. The AI can provide the distance to you in chat, but it cannot write directly to your external databases or software.
- 04
What happens if I provide an invalid coordinate?
The tool will return an error if the latitude or longitude is out of range, and your AI will report that failure to you.
- 05
Do I need to provide the coordinates in a specific format?
The AI is flexible, but providing decimal degrees is the most reliable way to get a result.
More questions about Haversine Distance Engine? The Connector page answers them. See everything the Haversine Distance Engine Connector can do
Connect Haversine Engine to Claude, Cursor, ChatGPT & more
