Trails
Import trails: GPX, KML, KMZ, GeoJSON and bulk uploads
Import trails in bulk from GPX, KML, KMZ or GeoJSON files: up to 25 files at once, several trails per file, with difficulty, primary use and networks set up front. Covers what is set automatically, error messages, reimporting a trail and turning planner recordings into trails.
Every new TrailsIQ organization starts with the same question: how do I get all the trails I already have into it quickly? For most, the answer is a bulk import. Drop up to 25 GPX, KML, KMZ or GeoJSON files at once, set a few details up front, and they arrive as real trails with distance, elevation and the other stats already worked out.
What you can import
TrailsIQ accepts four formats:
- GPX (
.gpx): the standard format from Garmin, Strava, Trailforks exports, most handheld GPS units and any recording app. - KML (
.kml): Google Earth's own format. Both drawn paths and GPS tracks saved in Google Earth are read. - KMZ (
.kmz): what Google Earth and Google My Maps give you when you save or export a map. Upload it as it is. There's no need to unzip it first. - GeoJSON (
.geojsonor.json): the usual format for mapping software, and what a lot of scripting tools produce.
Other formats, such as CSV, shapefile, TCX and FIT, aren't accepted. If your data is in one of those, convert it to GPX first. QGIS, GPSBabel and gpx.studio can all do this.
One file can hold your whole network
A file with several trails in it becomes one trail for each. A Google Earth export of four trails is one upload and four trails on your list, each with its own name, line and stats. Here is what counts as one trail:
- KML / KMZ: each placemark that has a line. If one placemark is drawn in several sections, those sections stay together as one trail. Pins and shapes are skipped.
- GPX: each track. Segments inside one track, such as a recording that was paused and resumed, stay together.
- GeoJSON: each line.
The options you pick for a file on the import page (difficulty, status, networks and so on) apply to every trail that comes out of it. To give the trails in one file different settings, edit them afterwards, or split the file before you upload it.
TrailsIQ reads the files strictly, so a file has to be well formed to import. In return, the same file always imports the same way.
Getting to the import page
Only owners and managers can import. Field workers and volunteers don't see the button.
There are two ways in, and both open the same page:
- The Import trails button in the top right of the Trails page. Anyone with the manager or owner role sees it.
- The same button in the middle of the Trails page when your organization has no trails yet, so a new organization has an obvious first step.
You can only upload trail files on this page. The map editor, a trail's page and the field app don't have an import button.

Importing files, step by step
The page is a single form. The drop zone reads "Drop GPX, KML, KMZ, or GeoJSON files here", with "or browse from your computer — up to 25 files, max 20 MB each" underneath. You can drag files onto it or click to browse.
- Drop your files. Each file gets its own row on the page, so if you dropped 12 GPX files you'll see 12 rows. The strip above them shows "{N} file(s) selected · total {size}", with a Clear all button next to it.
- Set details for each file (optional). Each row has a small form for the trails that file will become: Difficulty, Status, Access, Lifecycle, Primary use, Networks and Description. All of them are optional. Anything left as — default — uses the normal default for a new trail.
- Import. The button reads "Import trail", "Import {N} trails" or "Importing…", depending on how many files there are and whether it is running. A note at the bottom reminds you: "Trail names come from each file's track / route name. You can rename later."
- See the result. Importing a single file takes you to the new trail's page. Importing several takes you back to the Trails page. A message confirms what happened:
- Single file: "Trail imported: {name}."
- Batch: "{N} trails imported."
- Some worked and some didn't: the message adds "{N} file(s) skipped: {filename} — {reason}; …"
One bad file doesn't stop the batch. It is skipped and named in the message. If every file fails, the page shows the first file's error.

What is set automatically
TrailsIQ sets these for every imported trail without asking:
- Name: taken from the file. For a file with one trail, it uses the file's own title first, then the track's name, then the file name with
-and_turned into spaces. For a file with several trails, each trail takes its own track or placemark name. One without a name is numbered after the file, for example "MTB Trails 2". - Web address: made from the name. If another trail already has that address,
-2,-3and so on is added. - The line: latitude, longitude and elevation (where there is one) for every point in the track. In a GeoJSON file only lines are read. Points and shapes in the same file are skipped.
- Source: shown on the trail's page as GPX file upload, KML file upload, KMZ file upload or GeoJSON file upload, so you can always tell where the data came from.
- Stats: worked out from the line. They include distance, elevation gain and loss, lowest, highest, start, end, net and average elevation, average and maximum grade, start and end points, duration and average speed (if the file has times in it), an estimated walking time, and which way the trail faces (N, NE, E and so on). They are all on the trail the moment the import finishes.
The import also cleans up obvious elevation spikes, the kind a GPS gives when it first gets a fix. If a single point is more than 60% steeper than both its neighbors, while those neighbors agree with each other within 30%, it is replaced with their average. Genuinely steep singletrack is left alone.
Max grade is the steepest 25 m of the trail, measured on smoothed elevations. That is the same distance and the same smoothing the elevation chart on the trail page uses. So a pitch shorter than 25 m reads lower than it feels underfoot, because it is averaged with the ground either side of it. Any measuring distance would do the same. What you get is the steepest steady stretch, not the steepest single step, and that is the number that tells you whether a machine can get up there.
Elevation gain and loss are measured over the same 25 m, so they describe the trail and not the GPS. A recorded track has a point every few meters, and each point wobbles a little. If you added up every rise between neighboring points, most of the total would be the GPS wobbling, not the hill. Adding up in 25 m steps counts each stretch once, for what it really climbs.
This matters because the figure is now the same wherever you read it. A planned trail, that trail published to your network, and the same line exported as GPX and imported again all report one gain figure. If you noted a trail's gain before September 2026, it will read lower now. Nothing about the trail changed. The old figure counted GPS wobble as climbing, and the steeper and more carefully recorded the trail, the more wobble there was to count.
A loop ends at the height it started. When a trail finishes within 25 m (about 80 feet) of where it started, it is treated as a loop. Any difference between its starting and finishing elevation is treated as GPS drift, because a receiver's altitude wanders during a walk and the start and finish are the same ground. The difference is spread evenly along the trail, and the start stays where it was recorded. The elevation chart, gain, loss and net rise are all measured from the corrected line, so on a loop the gain and loss come out equal and the net rise is zero. The recorded elevations themselves are kept as they were. If you would rather the elevation came from the terrain than from the GPS, use Sample elevation from terrain on the trail's edit page.
Max grade used to be worked out differently, and could leave out the steepest stretches. On a mostly gentle trail with one hard climb out of a creek, a 30% pitch could be reported as 5%. The figure and the chart above it now measure the same thing, so trails with a short steep section will show a higher max grade than they did before. Nothing about those trails changed.

Details you can set on the import page
You can set these for each file on the import screen, so a bulk import doesn't need a second round of editing. Every field starts at — default —, which means a new trail's normal default.
- Difficulty: Easy, Moderate, Hard, Expert, Access or Pro. Useful when you are importing a folder of black diamond runs, so they arrive already marked.
- Status: Public or Hidden. Pick Hidden if you want to check the trails before anyone else sees them.
- Access: Inherit from network, Public, Private or Pass required.
- Lifecycle: Open, Planned, Under construction, Closed or Decommissioned. Pick Planned if you are loading a season's build list.
- Primary use: mixed, hiking, mtb, gravel, running, equestrian, nordic, alpine, snowshoe, fatbike, ATV, snowmobile or walking. This one matters. The difficulty icon shape on the map follows Primary use, not Difficulty. Set it here or you'll get plain circles instead of IMBA diamonds and squares.
- Description: free text. On a bulk import it is usually easier to add descriptions later on each trail's edit page.
- Networks: tap one or more of your existing networks to add the trail to them as it imports.
Everything else, such as surface, drainage, direction, allowed uses, e-bike settings, condition and condition note, and color, is set afterwards on the trail's edit page.
Elevation from the terrain
The import uses the elevation in your file. Whatever your GPS or software saved is what goes on the trail. The spike cleanup above catches obvious errors, but the import doesn't replace your elevations with terrain data automatically.
If the elevation in your file is poor, or missing altogether, the trail's stats will show that. Missing elevation is common with old handhelds, or with a GPX that went through a converter that dropped it. You have four options:
- Sample elevation from the terrain (one click). The trail's edit page has a Sample elevation from terrain button, and managers also get a link to it right under the trail's elevation chart. Use it whenever the chart or the gain looks wrong, not only when elevation is missing. A phone's GPS is least accurate up and down, and its reading drifts during a walk. The button looks up the terrain height for every point on the trail, using USGS elevation data in the US (about 10 m accuracy) and open global elevation data elsewhere (about 30 m). It saves those heights on the trail and works out gain, loss and grade again. You don't need to upload anything, and it works anywhere in the world. It replaces any elevation the trail already has, so think twice if your GPS elevations are already good.
- Import a better file with Replace geometry on the same edit page. See Reimporting over an existing trail below.
- Record the trail again in the field with the field-app planner. Planner recordings get their elevation from the terrain automatically when terrain correction is turned on for your organization. Ask us if you want it.
- Leave it as it is. For many public trails, the elevation on the map is close enough. The exact gain matters more to your team than to a visitor.
How accurate is terrain elevation? Expect 5 to 15 m of error up and down on open ground, and 10 to 30 m under thick tree cover, where the data can pick up the treetops. It is worst on cliffs and in narrow canyons. For a typical hiking or mountain bike trail in open country, the terrain figures are as good as a good GPS recording.

Common error messages
Every error appears on the import page above the drop zone. These are the most common:
- "File too large. Maximum is 20 MB.": Cut the file into sections (most GPS software can split a track), or open it in gpx.studio and export it again with fewer points.
- "Only .gpx, .kml, .kmz and .geojson files are accepted.": If you converted the file, check that its extension matches the new format.
- "File content does not match its extension.": A GPX file renamed to
.geojson, or the other way round, causes this. Rename it to match what it really is. - "File contains too many entity definitions.": This is a safety check against a kind of malicious file. If you didn't mean to upload anything unusual, export the file again from your software.
- "Invalid GPX file: …" or "Invalid KML file: …": the file is damaged. Open it in a text editor and check whether it is cut short or has the wrong header.
- "No track points found in this GPX file.": the GPX has no tracks and no waypoints.
- "No trail lines found in this KML file.": the KML or KMZ only has pins or shapes, so there is no line to make a trail from.
- "Invalid KMZ file: it is not a readable zip archive." or "This KMZ file has no KML document inside it.": the file was cut short on the way, or it isn't really a KMZ. Save it from Google Earth again.
- "This file has 4 trails in it (…), and only one can go here.": you used a file with several trails somewhere that takes one line, such as replacing a trail's line or the planner's Import GPX. Use Trails → Import for the whole file, or upload a file with just the one trail.
- "Invalid GeoJSON file.": the file is damaged, or it only has points or shapes and no lines.
- "GeoJSON file has fewer than 2 coordinates.": a line with only one point. Every trail needs at least two.
- Plan limit: if your organization reaches its plan's trail limit partway through a batch, the import stops and tells you how many trails made it in. The limit counts trails, so it can stop partway through one file, and it names the trails it didn't get to. Upgrade in Billing to keep going.
Importing the same file twice gives you two identical trails. The second one gets -2 added to its web address. If that happens, delete the extra one from the Trails page.
Check the file if a trail looks wrong on the map. A stray point at latitude 0, longitude 0 is dropped, but other stray points are kept. A trail in Nebraska with one point off the coast of Africa will import exactly like that. It is worth a quick look at odd-looking files before you import them.
Reimporting over an existing trail
If you have surveyed a trail again, for example with a better GPS unit, after a reroute, or because a member sent in a cleaner track, you can replace the line on the existing trail without deleting it and starting over.
On the trail's edit page there is a section headed "Replace geometry", which says: "Upload a GPX / KML / KMZ / GeoJSON to overwrite this trail's coordinates and re-derive its stats. Name, status, and condition stay put."
The file has to hold one trail. A file with several is refused, and the message names the trails it found, instead of joining them into one line.
Drop the new file into that section and press Reimport geometry. Every figure is worked out again: distance, elevation and grade. The trail's name, description, difficulty, primary use, networks and condition all stay as they were.
Things that were on the old line move to the new one. A maintenance task, structure or point of interest that sat on the old line (within 15 m of it) is moved to the nearest point on the new line. So a bridge that sat at km 3 on the old survey lands at whatever point on the new survey is closest to where it was.
Things placed off the line stay where they are. A hut 60 m from the trail, a sign in the parking lot or a water tank down a side track was put there on purpose, so a new line leaves it exactly where it was. If the reroute is a big one, you may still want to move a few items by hand.
Turning a planner recording into a trail
Sometimes the trail you need isn't in a file. It is the one you just recorded with the field-app planner. There are two ways to turn it into a trail:
- Dashboard: open the planner recording's page and press the green Export to trails button in its row of buttons.
- Field app: open the planner recording's details. It has the same green button and asks the same question.
A box then tells you what will be created. If you marked features while recording, it says how many structures or points of interest will be made from them. If you didn't, it says none will be. The field app also shows the trail's difficulty and estimated build cost, so you can take one last look before you publish.
Press Publish trail, and the trail is created as Hidden, with the planner shown as its source. Feature notes become structures and points of interest, each with its own pin on the map. Hazard, decision and plain notes stay with the recording. They are notes from the field, not things to keep a record of.
Branches stay connected. If your recording is a branch of another trail, such as an alternate line, a reroute or a spur, the new trail keeps that link and the kind of branch it is, so the map still shows how the two are related.
After exporting, the recording's page reads "Already exported. Published to the trails tab on {date}.", with an "Open trail →" link. Its button changes to Export again, which asks whether to save the plan as a new trail or replace the line of the trail you exported before.
Common gotchas
- The difficulty icon shape follows Primary use, not Difficulty. Set Primary use on the import page, or your trails get plain circles.
- Trail names come from inside the file, not the file name. A GPX with no track name inside it is named after the file instead ("silver-fox-loop.gpx" becomes "silver fox loop"). If a trail is called "Untitled" after import, the file had no name in it. Just rename it on the edit page.
- The import uses your file's elevation. It doesn't replace it with terrain data automatically, so you get whatever elevation the file had. If the file had none, press Sample elevation from terrain on the trail's edit page to fill it in. Planner recordings get their elevation from the terrain automatically when terrain correction is turned on for your organization.
.tcxand.fitfiles from Garmin fitness devices aren't accepted. Export to GPX from the device's software or from Strava first.- A GPX with waypoints but no tracks imports as one trail drawn through the waypoints in order. That is rarely what you want. Waypoints are usually points of interest, and the field app has its own way to add those.
- A KML or KMZ with only pins won't import. It fails with "No trail lines found in this KML file." You need a drawn path or a GPS track.
- One file, many trails, one set of options. Whatever you pick on a file's row applies to every trail in it. Split the file first if they need different settings.
- A batch stops at your plan limit. If your files hold 25 trails and your plan allows 20 more, the first 20 import and the rest are skipped, with a message saying so. Upgrade in Billing to finish.
- Reimporting keeps everything except the line. The name, difficulty, status, condition and every linked item stay. It is the safe way to update a trail you have surveyed again.
- To import from a spreadsheet, convert it to GPX first. If your data is a CSV of names, difficulties and coordinates, QGIS or a short script can turn it into GPX.
What's next
- Start with your five or ten most-used trails, so the map has familiar landmarks. Add the rest later.
- Once the first batch is in, go through the Trails page and check that each trail sits on the map where you expected. If one doesn't, survey it again with the field app.
- Read How to create a trail for a field-by-field guide to the trail edit page. The settings the import page doesn't have, such as surface, drainage, e-bikes and color, are all there.
- Set up your organization's networks before a big import, so the Networks choice on the import page has something to add trails to. See How to create a network.