Use case

Distance matrix API: travel times without per-element Google pricing

Distance matrix API for route optimisation and dispatch. Calculate travel times between multiple origins and destinations — no per-element billing.

Distance matrix API: travel times without per-element Google pricing

Navigating the intricacies of logistics often comes with the burden of costly routing services. Companies typically face high expenses with traditional mapping solutions, like Google Maps, that charge per element for distance matrix queries. For a logistics company needing to calculate travel times for hundreds of deliveries, this means incurring significant costs. Mapsi helps eliminate these financial hurdles by offering a flat pricing structure for distance matrix API calls—ideal for developers looking to optimize their routing processes without overspending.

The logistics location problem

Logistics companies handle thousands of address lookups daily. With such volumes, ensuring address accuracy becomes paramount; inaccurate addresses can lead to delayed deliveries, customer dissatisfaction, and increased operational costs. Moreover, in the EU market, logistics providers must comply with GDPR regulations, emphasizing the need for a privacy-focused geocoding solution.

Reliability is another critical factor. Logistics operations require a system with 99.9% uptime to ensure that dispatch systems remain uninterrupted. Unfortunately, traditional mapping solutions can fall short, particularly during peak times or due to network issues. Coupled with high per-request pricing, these challenges lead to a significant financial burden on companies striving to maintain efficiency and accuracy.

How Mapsi fits into a logistics stack

Mapsirevolutionizes the logistics workflow by offering an efficient and cost-effective solution. You can use our Distance Matrix API to calculate the travel times between numerous locations without incurring exorbitant costs per element. This service allows you to allocate your resources efficiently by focusing on optimization rather than costs.

Here's a simple example of how you can use the Distance Matrix API in Python:

import requests

url = "https://api.mapsi.dev/v1/distance-matrix"
params = {
    "origins": "40.7128,-74.0060|34.0522,-118.2437",
    "destinations": "37.7749,-122.4194|41.8781,-87.6298",
    "key": "YOUR_KEY"
}

response = requests.get(url, params=params)
print(response.json())

Key APIs for logistics applications

Geocoding API

The Geocoding API helps logistics companies translate addresses into geographic coordinates and vice versa. This is especially valuable when dealing with thousands of addresses, allowing for efficient delivery planning and route optimization. Endpoint: /v1/geocode.

Routing API (Valhalla)

The Routing API enables logistics applications to compute optimal routes based on real-time data, vehicle constraints, or user preferences. Whether you need routing for cars, trucks, or bicycles, you can tailor the endpoint to meet your specific requirements. Endpoint: /v1/route.

Distance Matrix API

With the Distance Matrix API, logistics companies can compute the travel times and distances between multiple origin-destination pairs in a single call. This is particularly useful for optimizing delivery routes based on time-sensitive deliveries. Endpoint: /v1/distance-matrix.

Isochrone API

The Isochrone API can help logistics operations visualize delivery zones based on time. By analyzing the areas that can be reached within a specific duration, logistics managers can strategize their routes effectively. Endpoint: /v1/isochrone.

Batch Geocoding

When handling large datasets, Batch Geocoding enables logistics companies to process multiple addresses simultaneously. This feature significantly reduces the time taken for geocoding tasks, allowing for efficient management of delivery schedules. Endpoint: /v1/batch-geocode.

Pricing that works at logistics scale

As your logistics operation scales, so do your mapping costs. Google Maps charges approximately $0.01 per element, meaning a 20x50 matrix would cost $10 per call. If your logistics application needs to process 500,000 addresses a month, that could lead to staggering expenses. In contrast, Mapsi's pricing model allows you to perform the same distance calculations for a fraction of that cost, making it easier to budget for logistics solutions as your business grows.

Getting started

Integrating Mapsi into your logistics stack is straightforward. Sign up for an API key, and leverage our extensive documentation to understand how to implement geocoding, routing, and distance calculations. You can find everything you need at Mapsirevolution documentation.

FAQ block

See also

Start building with the Mapsi logistics API

No credit card required. Free tier includes 10,000 requests/month.

Try it now
curl "https://api.mapsi.dev/geocode?q=Berlin&key=YOUR_KEY"
  • EU-hosted on Hetzner — GDPR compliant
  • Open-source core — Pelias + Valhalla
  • Store results forever — no lock-in