Sport-specific examples
Copy-paste route templates for running, trail running, hiking and cycling.
Complete, copy-paste examples for each sport type. Each one creates a template; push it with POST /routes/{route_id}/push?user_id=USER_ID.
Running
City loop with elevation
curl -X POST "https://access.tryterra.co/api/v2/routes" \
-H "Content-Type: application/json" \
-H "dev-id: YOUR_DEV_ID" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"name": "London 5K Loop",
"sport": "running",
"elevation_gain_meters": 45,
"elevation_loss_meters": 45,
"waypoints": [
{ "latitude": 51.5074, "longitude": -0.1278, "elevation_meters": 12 },
{ "latitude": 51.5100, "longitude": -0.1240, "elevation_meters": 20 },
{ "latitude": 51.5130, "longitude": -0.1200, "elevation_meters": 35 },
{ "latitude": 51.5150, "longitude": -0.1160, "elevation_meters": 50 },
{ "latitude": 51.5120, "longitude": -0.1130, "elevation_meters": 42 },
{ "latitude": 51.5090, "longitude": -0.1160, "elevation_meters": 28 },
{ "latitude": 51.5074, "longitude": -0.1278, "elevation_meters": 12 }
]
}'Trail running
Mountain trail with course points
Only Garmin shows course points. Other providers receive the route without them.
Hiking
Day hike with food and water stops
Road biking
Sportive route with speed target
Only Garmin uses speed_meters_per_second. Other providers ignore it.
Minimal route (2 waypoints)
Smallest valid route.
Last updated
Was this helpful?