Ghost GPX files and Ghost display settings can be defined in a
JSON file.
How to Use
- Open the Base GPX file.
- On the Map window's
Ghost tab, select the JSON
file using the Ghost file selection control.
- The JSON configuration is applied to the Ghost screen.
- Generate the Ghost as usual.
Overview
- Settings are defined in JSON files
- One JSON file defines one Ghost configuration
- Multiple GPX files can be loaded together as Ghosts
- The reference GPX is the GPX currently open in Turbo GPX
- Up to 9 Ghosts can be loaded
- The Ghost JSON file is read again each time a Ghost is
generated
| Item |
Description |
| Format |
JSON |
| Encoding |
UTF-8 (with or without BOM) |
| Key names |
Case-insensitive |
| Maximum file size |
4096 KB |
Root Structure -
Top-Level JSON Keys
| Item |
Type |
Required |
Description |
| FileType |
String |
○ |
File type identifier |
| Version |
Integer |
○ |
Format version |
| Settings |
Object |
- |
Common Ghost settings |
| Ghosts |
Array |
○ |
Array of Ghost GPX definitions |
Item Specifications
| Item |
Type |
Required |
Value / Description |
If Omitted |
| FileType |
String |
○ |
"TurboGPX.Ghost" |
- |
| Version |
Integer |
○ |
1 |
- |
| Settings |
Object |
- |
Common Ghost settings |
Default values are used |
| Ghosts |
Array |
○ |
Array of Ghost GPX definitions |
- |
Settings Object
Settings is an Object.
| Item |
Type |
Required |
Description |
If Omitted |
| UseRawStart |
Boolean |
- |
Use the first point of the Ghost GPX as the start
reference |
false |
| InterpolateCrossing |
Boolean |
- |
Use line-crossing interpolation |
false |
| Hud |
Object |
- |
Ghost HUD settings |
No HUD items |
| StartLine |
Object |
- |
Start-line settings |
Disabled |
| EndLine |
Object |
- |
Finish-line settings |
Disabled |
Hud Object
Hud is defined inside Settings.
| Item |
Type |
Required |
Description |
If Omitted |
| Position |
String / Integer |
- |
Ghost HUD display position |
Keep the current UI setting |
| Items |
Array |
- |
Items shown in Ghost HUD |
No items |
Position
| Value |
Description |
"TopLeft" |
Top left |
"BottomLeft" |
Bottom left |
"TopRight" |
Top right |
"BottomRight" |
Bottom right |
Items
| Item |
Description |
LATI |
Ghost latitude |
LONG |
Ghost longitude |
ELEV |
Ghost elevation |
SPED |
Ghost speed |
DIST |
Ghost distance |
HEAD |
Ghost heading |
TYPE |
Data type |
EDIF |
Elevation difference |
SDIF |
Speed difference |
TDIF |
Time difference |
DDIF |
Distance difference |
PDIF |
Position difference |
DST |
Remaining distance |
DSTB |
Reference GPX remaining distance |
DSTG |
Ghost GPX remaining distance |
DSTB/G |
Reference GPX / Ghost GPX remaining distance |
TIM |
Remaining time |
TIMB |
Reference GPX remaining time |
TIMG |
Ghost GPX remaining time |
TIMB/G |
Reference GPX / Ghost GPX remaining time |
Hud Notes
- Unknown values in
Items are ignored
- If
Items is omitted, no Ghost HUD items are
displayed
- With multiple Ghosts, the first selected HUD item is displayed
for all Ghosts
StartLine / EndLine
Objects
StartLine and EndLine are defined
inside Settings.
| Item |
Type |
Required |
Description |
If Omitted |
| Enabled |
Boolean |
- |
Enable the line |
false |
| P1 |
Object |
○ when Enabled=true |
Line start point |
- |
| P2 |
Object |
○ when Enabled=true |
Line end point |
- |
P1 / P2 Objects
P1 and P2 are Objects.
| Item |
Type |
Required |
Description |
| Lat |
Number |
○ |
Latitude |
| Lon |
Number |
○ |
Longitude |
StartLine / EndLine Notes
- If
Enabled is false, the line is
disabled
- If
Enabled is omitted, the line is disabled
- When
Enabled is true, both
P1 and P2 are required
P1.Lat, P1.Lon, P2.Lat,
and P2.Lon are required
EndLine is treated as the finish line in Turbo
GPX
Ghosts Elements
Each element of Ghosts is an Object.
| Item |
Type |
Required |
Description |
If Omitted |
| Enabled |
Boolean |
- |
Use this Ghost |
true |
| GpxFileName |
String |
○ when Enabled=true |
Absolute path to the Ghost GPX file |
Empty string |
| CursorFolder |
String |
- |
Folder containing Ghost marker images |
Empty string |
| CursorOpacity |
Integer |
- |
Ghost marker opacity |
128 |
| ShowCursor |
Boolean |
- |
Show the Ghost marker |
false |
| ShowTrack |
Boolean |
- |
Show the Ghost track |
false |
GpxFileName
Specify the GPX file to use as a Ghost in
GpxFileName.
| Condition |
Description |
| Path format |
Absolute path only |
| Relative path |
Not supported |
| File name only |
Not supported |
| File existence |
Checked when loading |
In Windows paths, write \ as \\.
Example:
"C:\\Users\\user\\Documents\\ghost_01.gpx"
Example
{
"FileType": "TurboGPX.Ghost",
"Version": 1,
"Settings": {
"UseRawStart": false,
"InterpolateCrossing": false,
"Hud": {
"Position": "TopRight",
"Items": [
"PDIF",
"DDIF",
"TDIF"
]
},
"StartLine": {
"Enabled": true,
"P1": {
"Lat": 35.681236,
"Lon": 139.767125
},
"P2": {
"Lat": 35.681500,
"Lon": 139.767500
}
},
"EndLine": {
"Enabled": true,
"P1": {
"Lat": 35.682000,
"Lon": 139.768000
},
"P2": {
"Lat": 35.682300,
"Lon": 139.768300
}
}
},
"Ghosts": [
{
"Enabled": true,
"GpxFileName": "C:\\Users\\wgs\\gpx\\ghost_01.gpx",
"CursorFolder": "C:\\Users\\wgs\\gpx\\pins\\ghost_blue",
"CursorOpacity": 128,
"ShowCursor": true,
"ShowTrack": true
},
{
"Enabled": true,
"GpxFileName": "C:\\Users\\wgs\\gpx\\ghost_02.gpx",
"CursorFolder": "C:\\Users\\wgs\\gpx\\pins\\ghost_red",
"CursorOpacity": 128,
"ShowCursor": true,
"ShowTrack": true
}
]
}