đȘ Sales point geocoding
Each store address is converted to GPS coordinates to be accurately positioned on the map.
GET /geocoding/forward Identify uncovered areas and double your commercial network coverage.
Endpoints used
POST /routing/isochrone GET /geocoding/nearby GET /maps/tiles/{z}/{x}/{y} Greater Tunis
of Greater Tunis served
residents in coverage zones
Click markers to view details · Map powered by TMaps
ChainShop TN
ChainShop TN, a 5-store network in Greater Tunis, uses the TMaps Isochrone API to calculate 15-minute reachable zones and detect neighborhoods without coverage. This data guides the opening of new sales points.
// Zones de chalandise â API TMaps
const zones = await Promise.all(
stores.map(async (store) => {
const res = await fetch(
'https://api.tmaps.tn/routing/isochrone',
{
method: 'POST',
headers: { 'Authorization': 'Bearer YOUR_KEY' },
body: JSON.stringify({
origin: { lat: store.lat, lng: store.lng },
contours: [{ time: 15 }], // 15 min en voiture
profile: 'driving',
}),
}
);
return res.json(); // â GeoJSON Polygon
})
);Each store address is converted to GPS coordinates to be accurately positioned on the map.
GET /geocoding/forward The Isochrone API generates a polygon representing the area reachable from each store within 15 minutes by car.
POST /routing/isochrone Coverage zones are displayed on the TMaps map; areas without intersection reveal expansion opportunities.
GET /maps/tiles/{z}/{x}/{y} Start free with 50,000 requests offered every month. No credit card required.
Read the documentation â