đ Customer address geocoding
Each delivery address is converted to precise GPS coordinates via the TMaps Geocoding API, calibrated for Tunisian addresses.
GET /geocoding/forward Fewer kilometers, more deliveries, happier customers.
Endpoints used
POST /routing/optimized GET /geocoding/forward GET /distance-matrix vs non-optimized route
vs 41 min before TMaps
+0.9 pt since integration
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.
// 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.4Each delivery address is converted to precise GPS coordinates via the TMaps Geocoding API, calibrated for Tunisian addresses.
GET /geocoding/forward The Routing API calculates the optimal stop sequence to minimize distance and time, accounting for Tunisian traffic conditions.
POST /routing/optimized 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} Start free with 50,000 requests offered every month. No credit card required.
Read the documentation â