đ Claim geolocation
The declared claim address is instantly geocoded to locate the case on the map of available experts.
GET /geocoding/forward Assign the nearest expert, optimize their tour, collect field data.
Endpoints used
GET /distance-matrix POST /routing/optimized GET /geocoding/reverse Greater Tunis
vs 1.8 before TMaps
since TMaps integration
Click markers to view details · Map powered by TMaps
AssuMap TN
AssuMap TN, a Tunisian insurance company, manages its 6 claims experts using TMaps. As soon as a claim is declared, the system identifies the nearest available expert and generates an optimized route to visit multiple cases in a single tour.
// Affectation expert sinistre â API TMaps
// 1. Matrice de distance experts â sinistre
const matrix = await fetch(
'https://api.tmaps.tn/distance-matrix',
{
method: 'POST',
headers: { 'Authorization': 'Bearer YOUR_KEY' },
body: JSON.stringify({
origins: experts.map(e => ({
lat: e.lat, lng: e.lng
})),
destinations: [claim.position],
profile: 'driving',
}),
}
);
// 2. Sélection de l'expert le plus proche
const { durations } = await matrix.json();
const nearest = experts[
durations.indexOf(Math.min(...durations))
];The declared claim address is instantly geocoded to locate the case on the map of available experts.
GET /geocoding/forward The distance matrix calculates travel time from each available expert to designate the closest to the claim.
GET /distance-matrix The Routing API optimizes the sequence of claims to process during the day to minimize the expert's travel.
POST /routing/optimized Start free with 50,000 requests offered every month. No credit card required.
Read the documentation â