TMaps - Mapping API Tunisia
🍕 Food & Restaurants Use case · Zedda Food

Manage Restaurant Delivery Zones with TMaps API

Define your zones, calculate per-km fees, display everything on a map.

Endpoints used

GET /maps/tiles/{z}/{x}/{y} GET /geocoding/forward POST /routing/direction
Partner restaurants
4

Greater Tunis — demo

Avg. delivery radius
3 km

active zone per restaurant

Avg. estimated time
22 min

within coverage zone

Interactive Demo

Click markers to view details · Map powered by TMaps

Zedda Food

Zedda Food, a Tunisian food delivery app, uses TMaps to display its partner restaurants, define circular delivery zones, and estimate delivery times based on distance. Couriers receive their optimized route directly in the mobile app.

Code Example
// Zone de livraison + ETA — API TMaps
// 1. Zone de livraison circulaire
const zone = await fetch(
  'https://api.tmaps.tn/routing/isochrone',
  {
    method: 'POST',
    headers: { 'Authorization': 'Bearer YOUR_KEY' },
    body: JSON.stringify({
      origin:   { lat: 36.8322, lng: 10.1940 },
      contours: [{ distance: 3 }], // 3 km
      profile:  'driving',
    }),
  }
);

// 2. Estimation du délai de livraison
const eta = await fetch(
  'https://api.tmaps.tn/routing/direction' +
  '?from=36.8322,10.1940&to=36.8485,10.1712' +
  '&api_key=YOUR_KEY'
);
const { duration_min } = await eta.json(); // → 18

How It Works

1

🍔 Restaurant positioning

Each partner restaurant address is geocoded and displayed on the map with its menu and opening hours.

GET /geocoding/forward
2

📏 Delivery zone definition

A delivery radius (1–5 km) is defined per restaurant. Out-of-zone customers are informed in real time when ordering.

POST /routing/isochrone
3

đŸ›” Courier routing

The Direction API calculates the optimal restaurant → customer route; the courier follows it in the mobile app with turn-by-turn navigation.

POST /routing/direction

Ready to integrate TMaps into your project?

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

Read the documentation →