Split GPX file by days
The code below uses the Toolbox SDK, which you can install with pip install toolbox-sdk.
Additional Python examples: using SDK, using Requests. If you prefer other programming language or need full API reference, check out Toolbox OpenAPI as well.
Docs
Splits a GPX file tracks and waypoints by days (cut by midnight) and saves each day’s data to a separate GPX file.
Inputs:
GPX file. Needs to be a single file. If you have several files, first merge them using gpxmerge tool;
Time zone. GPX tracks store time in UTC. To split tracks at midnight, provide the time difference from UTC, ex.
+09:00.
Outputs:
ZIP archive containing GPX files, one for each day.
Tracks split by date on a map¶
Try the tool in action
Click on the Demo button above the tool form. The fields are filled in with demo values.
Click on the Run button.