TMaps - Mapping API Tunisia
đŸ›ïž Tourism & Hospitality Use case · TunisTrip App

Create Interactive Tourist Maps for Tunisia with TMaps

Rich cultural maps that guide travelers to Tunisia's treasures.

Endpoints used

GET /maps/tiles/{z}/{x}/{y} GET /geocoding/nearby POST /routing/direction
Iconic sites
5

in Greater Tunis — demo

Cultural route
14 km

Medina → Carthage → Sidi Bou Said

Available offline
100%

downloadable vector tiles

Interactive Demo

Click markers to view details · Map powered by TMaps

TunisTrip App

TunisTrip App offers personalized tourist itineraries around Tunisian historical sites. Using the TMaps API, the app displays interactive site maps, calculates travel times between landmarks and generates offline maps for areas without network coverage.

Code Example
// ItinĂ©raire touristique — API TMaps
const itinerary = await fetch(
  'https://api.tmaps.tn/routing/direction',
  {
    method: 'POST',
    headers: { 'Authorization': 'Bearer YOUR_KEY' },
    body: JSON.stringify({
      waypoints: [
        { lat: 36.7992, lng: 10.1709, name: 'Médina de Tunis' },
        { lat: 36.8094, lng: 10.1400, name: 'Musée du Bardo' },
        { lat: 36.8528, lng: 10.3261, name: 'Carthage' },
        { lat: 36.8680, lng: 10.3430, name: 'Sidi Bou Said' },
      ],
      profile: 'driving',
    }),
  }
);
const { legs, total_duration, total_distance } = await itinerary.json();
// → total_duration: 52 min  |  total_distance: 32 km

How It Works

1

đŸ—ș Cultural map display

TMaps vector tiles display Tunisian streets with historical and cultural sites highlighted.

GET /maps/tiles/{z}/{x}/{y}
2

📌 Points of interest display

The Nearby API returns museums, mosques, restaurants and hotels around the tourist's position.

GET /geocoding/nearby
3

🧭 Cultural itinerary generation

The Direction API generates a walking or driving itinerary between multiple sites, with estimated travel times.

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 →