TMaps - Mapping API Tunisia
🚚 E-commerce & Delivery Use case · RapidoTN

Optimize Your Delivery Routes with TMaps API

Fewer kilometers, more deliveries, happier customers.

Endpoints used

POST /routing/optimized GET /geocoding/forward GET /distance-matrix
Distance saved
32%

vs non-optimized route

Avg. delivery time
28 min

vs 41 min before TMaps

Customer satisfaction
4,7 / 5

+0.9 pt since integration

Interactive Demo

Click markers to view details · Map powered by TMaps

RapidoTN

RapidoTN, a Tunisian express delivery platform, uses the TMaps Routing API to calculate the optimal stop sequence in real time. Result: 32% less distance traveled and a customer satisfaction score of 4.7/5.

Code Example
// Optimisation de tournĂ©e — API TMaps
const res = await fetch(
  'https://api.tmaps.tn/routing/optimized',
  {
    method: 'POST',
    headers: { 'Authorization': 'Bearer YOUR_KEY' },
    body: JSON.stringify({
      origin: { lat: 36.8355, lng: 10.2261 },
      waypoints: [
        { lat: 36.8485, lng: 10.1712 },
        { lat: 36.8644, lng: 10.1808 },
        { lat: 36.8664, lng: 10.1938 },
        { lat: 36.8779, lng: 10.2024 },
      ],
      profile: 'driving',
    }),
  }
);
const { route, duration_min, distance_km } = await res.json();
// → duration_min: 38  |  distance_km: 18.4

How It Works

1

📍 Customer address geocoding

Each delivery address is converted to precise GPS coordinates via the TMaps Geocoding API, calibrated for Tunisian addresses.

GET /geocoding/forward
2

🔁 Route optimization

The Routing API calculates the optimal stop sequence to minimize distance and time, accounting for Tunisian traffic conditions.

POST /routing/optimized
3

đŸ—ș Real-time map display

The route is instantly displayed on an interactive TMaps map for the driver (mobile) and the customer (order tracking).

GET /maps/tiles/{z}/{x}/{y}

Ready to integrate TMaps into your project?

Start free with 50,000 requests offered every month. No credit card required.

Read the documentation →