-
Notifications
You must be signed in to change notification settings - Fork 0
quick start
TheBoomerDev edited this page May 28, 2026
·
1 revision
Welcome! This guide will help you make your first API call in 5 minutes.
- Python 3.10+
- TRANSCEND API key (sign up at https://transcend.cargoffer.com)
pip install transcend-sdk- Go to https://transcend.cargoffer.com
- Register / Login
- Go to Dashboard → API Keys
- Copy your API key
from transcend_sdk import TranscendClient
# Initialize with your API key
client = TranscendClient(api_key="YOUR_API_KEY")
# Calculate a route (Madrid → Barcelona)
route = client.route.calculate(
origin_lat=40.4168, # Madrid
origin_lon=-3.7038,
destiny_lat=41.3874, # Barcelona
destiny_lon=2.1686,
)
print(f"Distance: {route.distance / 1000:.1f} km")
print(f"Duration: {route.duration / 3600:.1f} hours")
print(f"Polyline: {route.polyline[:50]}...")
client.close()Expected output:
Distance: 623.5 km
Duration: 5.8 hours
Polyline: _p~iF~ps|U_ulLnnqC_mqNvxq`@gFpqjB...
-
TranscendClientconnects to the TRANSCEND API -
client.route.calculate()sends coordinates - API returns route with distance, duration, polyline
- Check your API key is correct
- Make sure key is active in dashboard
- Check internet connection
- Verify API is available: https://back.transcend.cargoffer.com