đ Restaurant positioning
Each partner restaurant address is geocoded and displayed on the map with its menu and opening hours.
GET /geocoding/forward 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 Greater Tunis â demo
active zone per restaurant
within coverage zone
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.
// 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(); // â 18Each partner restaurant address is geocoded and displayed on the map with its menu and opening hours.
GET /geocoding/forward A delivery radius (1â5 km) is defined per restaurant. Out-of-zone customers are informed in real time when ordering.
POST /routing/isochrone 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 Start free with 50,000 requests offered every month. No credit card required.
Read the documentation â