Prelaunch · Shipment tools and workspace testing. Live rates and paid plans are not active.

LaneSpark tools

Google Driving Mileage Calculator for Freight Lanes

Checking the distance for a shipment starts with two places: where it picks up and where it delivers. Whether you have one lane to check or a spreadsheet full of them, LaneSpark Mileage gives you a way to get those distances into your planning.

LaneSpark Mileage calculates Google driving miles between cities, ZIP codes, or full addresses. Check one lane, process up to 25 lanes per batch, or request mileage through ChatGPT or the API. Successful results include a distance and a Google Maps link.

For a quick city-to-city check, you can start with a city and state. When you're comparing shipments between specific warehouses, use the full pickup and delivery addresses.

Connect to ChatGPT — no API key needed ↓

Where is your freight going?

Choose the Option That Fits Your Lane List

A freight lane connects a pickup location with a delivery location. All three options below let you look up that distance; choose the one that fits how you're working.

Option Use it when What to enter
Single lane You need to check one shipment. An origin and destination.
Bulk lanes Your lanes are in Excel, Google Sheets, or a CSV file. Spreadsheet rows with headers, or a CSV upload.
API & AI You want mileage in a conversation or another application. A ChatGPT request or a JSON request to the API.

No LaneSpark account or API key is required. The service uses standard Google driving routes, so check truck restrictions separately before dispatching a vehicle.

Calculate Driving Miles for One Lane

  1. Select Single lane above.
  2. Enter the pickup location in Origin and the delivery location in Destination.
  3. Select Calculate driving miles.
  4. Read the distance and use View on Google Maps to inspect the route.

Include a state or country with a city name. “Springfield, IL, USA” is more specific than “Springfield.” For a facility lookup, use the street address, city, state, and ZIP code.

A city or ZIP code represents an area. Google selects a location for that entry, which may be some distance from the dock you actually use. Full addresses help you compare the locations you intend to ship between.

You can also select Download results CSV to save the result for your spreadsheet.

Calculate Mileage From Excel, Google Sheets, or CSV

Use Bulk lanes when you have several origins and destinations to check. Each row represents one lane, with up to 25 lanes per batch.

Prepare Your Rows

Use origin and destination as the column headers. An optional reference column lets you keep your own lane ID alongside each result.

Here's a CSV example you can copy:

reference,origin,destination
lane-001,"Chicago, IL, USA","Atlanta, GA, USA"
lane-002,"Dallas, TX, USA","Houston, TX, USA"

The quotation marks keep the commas inside each location from splitting it into extra columns. If you're working in Excel or Google Sheets, copy the cells, including the header row, and choose Paste from spreadsheet and paste them into the text box. To upload a file, save it as CSV first, or start with Download CSV template.

Already have cities and states in separate columns? Use originCity, originState, destinationCity, and destinationState. You can include reference with that format, too.

Preview, Calculate, and Export

Choose Upload CSV or Paste from spreadsheet and add your rows. The tool checks them automatically and shows how many lanes are ready. Expand Review lanes to check the locations before calculating, especially when several warehouses share a city name or a lane appears in both directions.

Select the calculate button to run the batch, then review each result. Use Download results CSV to save the output. The export includes your locations, reference, driving miles, status, and any error message, so you can identify rows that need attention.

Request Mileage in ChatGPT or Through the API

Ask in ChatGPT

Connect LaneSpark Mileage using the ChatGPT connection instructions on this page. Once it's connected, select it in your conversation and make a request like this:

Use LaneSpark Mileage to get Google driving miles from Chicago, IL to Atlanta, GA, and from Dallas, TX to Houston, TX. Put the results in a table and include the Google Maps links.

You can include up to 25 lanes in one request. Access to custom connections depends on your ChatGPT account and workspace permissions. If that option isn't available, use the single-lane or bulk tool on this page.

Add Mileage to Another Application

For an integration, send a JSON POST request to https://lanespark.co/api/v1/mileage. The API accepts 1–25 lanes and returns results in order, including miles, distance in meters, and a status for each lane.

The OpenAPI specification provides the request and response details. Check every lane's status before using the numbers: an HTTP 200 response can still include a lane that failed to calculate.

Compare Freight Quotes Using the Same Mileage

The mileage is useful when you want to put several quotes for the same shipment on a common basis. Divide each quoted total by the same lane distance to calculate its quoted cost per mile.

For example, using hypothetical figures, a $2,400 quote for an 800-mile lane works out to $3.00 per mile. That example shows the arithmetic; it isn't a current freight rate.

Compare the included charges as well as the distance. A quote that includes fuel and unloading won't compare fairly with one that leaves those charges out. Use matching pickup and delivery addresses, the same mileage source, and equivalent included services.

The mileage lookup gives you a distance for the comparison. Freight pricing and the carrier's billing terms still need to be confirmed separately.

Frequently Asked Questions

Do I Need a LaneSpark Account or API Key?

No. You can use the mileage service without a LaneSpark account or API key. Connecting through ChatGPT also depends on the connection options and permissions available in your ChatGPT account.

Is This a Truck Mileage or Truck Navigation Tool?

LaneSpark Mileage returns standard Google driving distances. It doesn't check truck height, weight, hazardous-material restrictions, or other vehicle requirements. Use it as a planning reference and confirm a suitable truck route before dispatch.

Why Is the Mileage Different When I Open Google Maps?

The tool uses the first driving route Google returns, without a specified departure time. Google Maps may select a different route when you open the link later. Check the endpoints and selected route when comparing the two distances.

Will These Miles Match My Carrier's Invoice?

They may differ. Your carrier may use another mileage source, route, or billing method. If the charge depends on mileage, confirm the agreed endpoints and mileage method with the carrier before booking.

Does One Result Include a Return Trip or Extra Stops?

Each result covers the origin and destination you entered. Enter a return trip or another leg as a separate lane. For example, calculate warehouse-to-customer and customer-to-next-stop separately; the bulk tool treats those rows as individual lanes.

What If I Have More Than 25 Lanes?

Divide your list into batches of no more than 25 lanes. All users share a daily mileage allowance, so additional batches depend on the remaining capacity. If that allowance is reached, try again later.

What Should I Do When a Lane Fails?

Read the error message for that row. Check both locations for typos or missing states, and use full addresses if the place names are ambiguous. If the message says the service is busy or its allowance has been reached, wait and retry later.

Where Are My Pickup and Delivery Locations Sent?

Your locations are sent to Google to calculate driving routes. See the LaneSpark privacy policy for more information about how data is handled.

Have a lane ready? Enter the pickup and delivery locations above, or choose Bulk lanes to bring in your spreadsheet.

Connect to ChatGPT

No API key needed

Ask for Google driving miles in a regular ChatGPT conversation. Add LaneSpark Mileage once as a custom plugin. No custom GPT or LaneSpark account is required.

Your connection details

Name

LaneSpark Mileage

Authentication

No authentication

Set it up in ChatGPT

  1. Open ChatGPT on the web and go to Plugins.
  2. Select + (Add), then Add custom MCP server.
  3. Enter the name and server URL shown here. Choose No authentication.
  4. Review the connection notice, then select Create as a plugin and connect or install LaneSpark Mileage.
  5. In a chat, type @ and select LaneSpark Mileage.
Open ChatGPT Plugins ↗

Custom connections depend on your ChatGPT account and workspace permissions. If the option is missing, check with your workspace admin or use the mileage tool above. Official setup guide

Try your first lookup

“Use LaneSpark Mileage to get driving miles from Chicago, IL to Atlanta, GA.”

Look up up to 25 lanes per request. Everyone shares the daily mileage allowance. Locations are sent to Google for routing; results are standard Google driving miles, not truck-specific routes. Privacy

Back to the mileage calculator ↑ · Terms · Privacy