• LOGISTICS
  • SCHEDULING
  • DATA
  • HUMAN

How to optimize delivery routes with your AI

Connect LocationIQ to your agent to turn a list of addresses into a logical driving sequence. Your AI handles the math while you manage the fleet.

Ask AI about this page

Short answer

How can I use AI to plan my delivery routes?

Your AI uses LocationIQ to calculate the exact distances and travel times between every stop in your list. It then identifies the most efficient order for your drivers to follow. You get a structured route that minimizes time spent on the road.

Route outcomes

What you get from the AI

The results of your routing request.

LOGISTICS

Optimized stop sequences

The AI calculates the best order for your stops based on distance. You get a clear path that reduces total mileage.

SCHEDULING

Accurate arrival windows

By calculating travel times between points, your AI provides realistic estimates for when drivers will reach each location.

DATA

Cleaned address data

The AI uses geocoding to turn messy address strings into precise coordinates for mapping.

HUMAN

Final route review

The AI presents the math, but you decide if the route accounts for real-world constraints like driver breaks or vehicle limits.

The workflow

What your AI does when the stops arrive.

The AI moves from raw addresses to a finished driving plan using specific LocationIQ tools.

  1. Geocode addresses

    The AI converts your list of text addresses into precise latitude and longitude coordinates.

    calculate_directions
  2. Map the distance matrix

    The AI builds a grid of the distances and travel times between every single stop in your set.

    calculate_distance_matrix
  3. Sequence the path

    The AI analyzes the matrix to find the shortest or fastest path through all points.

    calculate_directions
  4. Verify the route

    The AI double-checks the final path to ensure the travel times and distances match your requirements.

    calculate_directionscalculate_distance_matrix

Try it

Copy these to start.

Use these prompts to kick off the routing process.

Starting points

Replace the bracketed text with your actual data, like your spreadsheet link or list of addresses.

LocationIQ Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_guvJJkDc8PrT9hGQJetyuZhi2wlRTWf0DhaRoJ1x/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — LocationIQ capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "locationiq-geocoding-maps-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_guvJJkDc8PrT9hGQJetyuZhi2wlRTWf0DhaRoJ1x/mcp"
    }
  }
}
Copy into chat04
  • Calculate the best delivery route for these addresses: [Paste addresses here]

  • Use the distance matrix to find the shortest path between these stops in my Google Sheet: [Link to sheet]

  • I have 10 stops in downtown Chicago. Find the most efficient sequence and tell me the total travel time.

  • Check the travel time between these three locations: [Address A, Address B, Address C]

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect LocationIQ once, then ask.

One connection gives your agent access to the mapping tools. Your credentials stay encrypted and secure.

Connect LocationIQ to your AI

FAQ

How this task behaves

  • 01

    Can the AI automatically send the route to my driver's phone?

    No. The AI can only calculate the routes and distances. You must manually send the final path to your drivers using your existing dispatch tools.

  • 02

    Will the AI update my live GPS tracking?

    No. This MCP is for planning and calculating distances, not for real-time vehicle tracking or active GPS monitoring.

  • 03

    Can I use this to find the shortest route?

    Yes. The AI uses the distance matrix and direction tools to identify the most efficient sequence of stops.

  • 04

    Does the AI handle traffic data?

    The AI uses the data provided by the LocationIQ tools to calculate travel times between your specific points.

  • 05

    Can the AI fix typos in my address list?

    Yes. The geocoding capability allows the AI to resolve address strings into valid coordinates.

  • More questions about LocationIQ? The Connector page answers them. See everything the LocationIQ Connector can do

Connect LocationIQ to Claude, Cursor, ChatGPT & more