We use cookies to enhance your browsing experience and analyse our traffic. Nothing beyond essential cookies runs until you choose. You can change your mind any time in our Cookie Policy.
TL;DR: Trailforks users can now connect their account to apps built on Terra API. Each ride they log arrives as a Terra activity with its GPS track, elevation trace, climb and descent and location, plus a heart rate trace when the ride was recorded with heart rate. If you already use Terra, turn Trailforks on in the dashboard. There is no new integration to build.
Trailforks is a trail map and ride logging app used mainly by mountain bikers. Riders use it to find a trail, check its current conditions, follow it on the map and log the ride. Each logged ride records where someone rode, how much they climbed and descended and, with a heart rate source, how hard they worked.
Every ride with a GPS track arrives as one Terra activity with the fields below. Manually entered rides without a track are not included.
Data
What you get
Activity type
Mountain biking, hiking, trail running, walking or skiing, taken from the type the rider chose in Trailforks. Anything else arrives as "other".
Name
The rider's title, or the city and region when there is no title.
Timing
Start and end time in the rider's local time with the UTC offset, total duration, and the time spent stopped.
Distance and speed
Distance in metres, and average speed worked out from distance over moving time, so stops do not lower it.
Climb and descent
Total metres climbed and descended for the ride, both as positive numbers.
Elevation trace
Elevation samples across the ride, with the minimum, maximum and average elevation.
GPS track
The full route as a standard polyline, position samples, and the start, end and centre coordinates.
Heart rate
Heart rate samples across the ride, plus average, minimum and maximum, on rides recorded with a heart rate source such as a watch.
Location
The city, state or province, and country Trailforks has attached to the ride.
Device
The manufacturer and model of the device that recorded the ride, as Trailforks reports it.
Trailforks does not timestamp individual GPS, elevation or heart rate points, so sample times are spread evenly across the ride. The samples are in the right order, but each one's time is approximate.
What you can build with Trailforks rides
On a road or a treadmill, distance and pace describe most of a session. On trails, ten kilometres can be an easy ride or two hours of climbing and a technical descent. Elevation and heart rate show which.
Mountain bike descents also take effort: the rider is braking, absorbing terrain and holding position for minutes at a time. With the elevation trace and the heart rate trace delivered over the same ride, you can measure effort on climbs and descents separately, so a training load model can account for both.
Each ride also carries a GPS track and a city, region and country, so you can tell a rider's local loop from a trip to a bike park abroad. A coaching programme can account for altitude and unfamiliar terrain. A rewards or engagement product can recognise exploration as well as volume.
How to connect Trailforks to your app
Trailforks uses OAuth. Your user signs in on Trailforks' own login page and approves access, so your app never sees their password. You can present the connection through the Terra widget or your own interface.
Once connected, Terra checks Trailforks for new rides on a schedule and delivers each one to your configured destination. Trailforks does not push rides when they end, so they arrive after Terra's next check rather than instantly.
Each ride arrives already standardised into Terra's activity model. Field names, units and timestamps match the activity data you already receive from other sources, so code that reads a Terra activity today will read a Trailforks ride without changes.
Common questions about Trailforks
Does every Trailforks ride include heart rate?
No. Heart rate is there when the ride was recorded with a heart rate source, such as a watch. Rides recorded with the Trailforks phone app alone carry the route, elevation, distance and timing, but no heart rate. When heart rate is present you get the full trace as well as the average, minimum and maximum.
Can I see which named trails a rider used?
Not as named trails. Each activity carries the full GPS track, the elevation trace and the ride's city, region and country, but Trailforks' trail matches, lift and jump details, ride notes and weather are not part of the Terra activity. You can still place the ride precisely on a map from the polyline and position samples.
How far back can I request Trailforks rides?
A historical request returns the rides in your date range from among the user's 50 most recently logged rides with a GPS track. For very active riders, older rides may not be included.
Getting started with Trailforks
Trailforks is listed with the other sources in your dashboard. Once you enable it, your users can connect their Trailforks accounts through your existing connection flow. The Trailforks integration page shows an example activity payload. Teams new to Terra can start with the getting started guide, which covers creating an account through to connecting your first user.