Ghost


Turbo GPX | Ghost

A GPX file can be displayed on the map as a Ghost.
The data in the Main window is called the Base.
Comparison data between the Ghost and the Base can be displayed in Ghost HUD.

Ghost is one way to enjoy GPX data. It is not intended as a professional analysis tool for detailed data analysis.

How to Use

  1. Open the GPX file to use as the Base.
  2. Open the Ghost tab in the Map window.
  3. Select a Ghost GPX file or a Ghost JSON file.
  4. Configure start/finish and display options as needed.
  5. Generate the Ghost.

What Is a Ghost?

Load a GPX file for the Ghost and generate Ghost data relative to the Base.
Turbo GPX calculates the corresponding Ghost position for the current Base position and displays it.

A Ghost cannot be generated if the Ghost GPX does not contain date/time data.

*** Note ***

Distance traveled and travel time are calculated independently from each GPX dataset. Even on the same route, GPS drift and other recording variations may produce different traveled distances.

Ghost Generation Logic

For the Base, Ghost calculates how far the Ghost would have traveled after the same elapsed time and displays the estimated position.

The Base is at t seconds after the start
↓
Find the Ghost position at t seconds
↓
Display the Ghost cursor at that position

Multi-Ghost

Load multiple GPX files as Ghosts and display them at the same time.
Multi-Ghost is configured with Ghost JSON.


Ghost JSON is a JSON file that groups multiple Ghost GPX files together with their display settings. The Base is the GPX currently open in Turbo GPX. Ghost JSON specifies the GPX files used as Ghosts. Ghost JSON is reloaded every time a Ghost is generated, so you do not need to reselect it after changing its contents.

Item Description
Base GPX currently open
Ghost GPX specified in Ghost JSON
Maximum 9 Ghosts
Ghost number Enabled Ghosts in Ghost JSON are treated in order as Ghost #1, Ghost #2, Ghost #3, and so on

Ghost JSON

When Multi-Ghost is loaded, the Ghost JSON file name is shown on the screen instead of the first Ghost GPX file name.

Main Ghost JSON Items

Ghost JSON Specification

Item Description
Settings Common Ghost settings
Ghosts Array of Ghost GPX definitions
GpxFileName Ghost GPX file
CursorFolder Folder containing Ghost cursor images
CursorOpacity Ghost cursor opacity
ShowCursor Show the Ghost cursor
ShowTrack Show the Ghost track
StartLine Start line
EndLine Finish line

The order of entries in Ghosts determines the basic Ghost numbering. To change the order, rearrange the entries in the JSON file.
Ghosts with Enabled=false are not generated. In HUD, G1, G2, and so on refer to the display order of enabled Ghosts.
Each Ghost can independently specify a cursor-image folder, opacity, cursor visibility, and track visibility.

Defaults When Omitted

Item Default
Settings Use default values
Ghosts.Enabled Treated as enabled
CursorFolder Not specified
CursorOpacity 128
ShowCursor OFF
ShowTrack OFF
StartLine Disabled
EndLine Disabled

CursorOpacity is specified from 0 to 255. 0 is fully transparent and 255 is fully opaque.

Notes

Start and Finish

There are two ways to configure the start and finish.

Full-Data Method

The first Base point is the start and the last Base point is the finish.
Remove unnecessary points as needed to prepare the data.
To use the first point of the GPX directly as the start point, enable Use Raw Start (☑).

Line Method

Set any two points on the map to create a line.
A point where the route crosses the line is used as the start or end (finish) position.
The detected start/end point index is displayed.

Use 🚩 to set the first point of the line. After clicking, set the second point to draw the line.
Use the Clear button to clear the line.
The Start Pin / End Pin images configured in Option are used.

The line is used to determine the index.
The line remains even after Ghost data is cleared.
To remove the line, use the Clear button.

Line Display

When the background of a line setting is green/red, that line is currently defined. Use the Clear button to remove it.

StartLine / EndLine in Ghost JSON

Ghost JSON can define StartLine and EndLine inside Settings.

StartLine is used to detect the start. EndLine is used to detect the end.

"Settings": {
  "StartLine": {
    "Enabled": true,
    "P1": {
      "Lat": 35.6810000,
      "Lon": 139.7660000
    },
    "P2": {
      "Lat": 35.6820000,
      "Lon": 139.7670000
    }
  },
  "EndLine": {
    "Enabled": true,
    "P1": {
      "Lat": 35.6815000,
      "Lon": 139.7665000
    },
    "P2": {
      "Lat": 35.6825000,
      "Lon": 139.7675000
    }
  }
}
Setting Behavior
No StartLine / no EndLine Use the entire range
StartLine only Use data after StartLine
EndLine only Use data through EndLine
StartLine and EndLine Use data from StartLine through EndLine
StartLine and EndLine are the same line Use the range from the first crossing to the second crossing

Option

Item Description
Use Raw Start ☑ Use the first point of the source Ghost data as the start
□ Use the start position determined from the line
Interpolate Crossing ☑ Enable the setting related to interpolation of line-crossing positions
□ Disable the setting related to interpolation of line-crossing positions
Highlight Ghost Range ☑ Highlight the range used to generate the Ghost in the list
□ Do not highlight the range
Show Ghost on Chart ☑ Show Ghost data on charts
□ Do not show Ghost data on charts

For the full-data method, use Use Raw Start = ☑ when you want to use the first GPX point directly as the start.

For the line method, use Use Raw Start = □ when you want to use the detected line-based start position.

Interpolate Crossing

In the current version, Interpolate Crossing is retained as a setting in both the UI and Ghost JSON, but its effect on Ghost generation and movement results is limited.

Chart Display

While Ghost display is active, the Map window charts can display Ghost data. Right-click a chart item and enable Ghost to switch that chart to Ghost data. Disable the option to return to Base GPX data. If the selected data is unavailable, the chart is blank.

Map Display

The Ghost cursor and track can be displayed.

Specify a folder for Cursor. Its contents are the same as Cursor Pin in Option.

Item Description
Show Cursor ☑ Show the Ghost cursor
□ Do not show the Ghost cursor
Show Track ☑ Show the Ghost track
□ Do not show the Ghost track

Display Settings

Show Cursor / Show Track in the UI affect all Ghosts. ShowCursor / ShowTrack in Ghost JSON are per-Ghost settings.

Relationship Between UI and JSON Settings

Display Condition
Ghost cursor UI Show Cursor is ON and the individual Ghost has ShowCursor=true
Ghost track UI Show Track is ON and the individual Ghost has ShowTrack=true

The UI checkboxes affect all Ghosts.

CursorOpacity, however, is configured individually for each Ghost. With Multi-Ghost, different opacity values can be specified for different Ghosts.

Ghost Controls

As in normal operation, use ⬆️⬇️ to move the cursor. If the Base reaches the finish first, the Main window stops at the end of the list. In the Map window, however, you can continue with ⬇️ until the Ghost reaches its finish.

Ghost HUD

Displays various Ghost values.

Item Description
Top Left Top left
Bottom Left Bottom left
Top Right Top right
Bottom Right Bottom right
Item Name Description
LATI Latitude Latitude of the current Ghost position
LONG Longitude Longitude of the current Ghost position
ELEV Elevation Elevation of the current Ghost position
SPED Speed Speed of the current Ghost position
DIST Distance Distance from the Ghost start point
HEAD Heading Direction of travel at the current Ghost position
TYPE Data Type MEAS = measured point / INTR = interpolated point
EDIF Elevation Difference Base elevation - Ghost elevation
SDIF Speed Difference Base speed - Ghost speed
TDIF Time Difference Base/Ghost time difference at the same distance
DDIF Distance Difference Base distance - Ghost distance
PDIF Position Difference Straight-line distance between the Base and Ghost positions
DSTB Remaining Distance Base Base remaining distance to the finish
DSTG Remaining Distance Ghost Ghost remaining distance to the finish
TIMB Remaining Time Base Base remaining time to the finish
TIMG Remaining Time Ghost Ghost remaining time to the finish

TDIF

TDIF is the time difference between the Base and Ghost at the same traveled distance.

TDIF = Ghost elapsed time to reach the same distance - Base elapsed time

When TDIF is positive, the Ghost took longer to reach the same distance. In other words, the Base is ahead of the Ghost.

The TDIF value when the Base reaches the finish provides an approximate final time difference.

Item Reference
Ghost cursor Same elapsed time
TDIF Same traveled distance
DDIF Distance difference at the same elapsed time
PDIF Straight-line distance between Base and Ghost positions

The Ghost cursor shows "where the Ghost is at the same elapsed time," while TDIF shows "how many seconds apart the Base and Ghost reach the same distance."

Multi-Ghost HUD

With Multi-Ghost, Ghost numbers are shown in HUD.

TDIF G1 +12.34 s
     G2 -03.21 s

G1, G2, and so on indicate the display order of enabled Ghosts.

HUD Items in Multi-Ghost

Multi-Ghost HUD does not display every selected HUD item. Instead, only the highest-priority selected item is displayed for each Ghost.

If you want to display TDIF with Multi-Ghost, it is safest to specify only TDIF in Items in Ghost JSON.

"Hud": {
  "Position": "TopRight",
  "Items": [
    "TDIF"
  ]
}

HUD Item Priority

HUD item priority is not determined by the order written in Items in Ghost JSON. A fixed internal order is used.

  1. LATI
  2. LONG
  3. ELEV
  4. SPED
  5. DIST
  6. HEAD
  7. TYPE
  8. EDIF
  9. SDIF
  10. TDIF
  11. DDIF
  12. PDIF
  13. DST
  14. TIM

For example, with the following settings, Multi-Ghost HUD displays SPED, not TDIF.

"Items": [
  "TDIF",
  "SPED"
]

This is because SPED has higher priority.

Ghost JSON Examples

Single Ghost

{
  "FileType": "TurboGPX.Ghost",
  "Version": 1,
  "Settings": {
    "UseRawStart": false,
    "InterpolateCrossing": false,
    "Hud": {
      "Position": "TopRight",
      "Items": [
        "TDIF"
      ]
    }
  },
  "Ghosts": [
    {
      "Enabled": true,
      "GpxFileName": "C:\\GPX\\ghost01.gpx",
      "CursorFolder": "C:\\Turbo GPX\\image\\ghost\\ghost01",
      "CursorOpacity": 255,
      "ShowCursor": true,
      "ShowTrack": true
    }
  ]
}

Multi-Ghost

{
  "FileType": "TurboGPX.Ghost",
  "Version": 1,
  "Settings": {
    "UseRawStart": false,
    "InterpolateCrossing": false,
    "Hud": {
      "Position": "TopRight",
      "Items": [
        "TDIF"
      ]
    }
  },
  "Ghosts": [
    {
      "Enabled": true,
      "GpxFileName": "C:\\GPX\\ghost01.gpx",
      "CursorFolder": "C:\\Turbo GPX\\image\\ghost\\ghost01",
      "CursorOpacity": 255,
      "ShowCursor": true,
      "ShowTrack": true
    },
    {
      "Enabled": true,
      "GpxFileName": "C:\\GPX\\ghost02.gpx",
      "CursorFolder": "C:\\Turbo GPX\\image\\ghost\\ghost02",
      "CursorOpacity": 192,
      "ShowCursor": true,
      "ShowTrack": true
    },
    {
      "Enabled": false,
      "GpxFileName": "C:\\GPX\\ghost03.gpx",
      "CursorFolder": "C:\\Turbo GPX\\image\\ghost\\ghost03",
      "CursorOpacity": 128,
      "ShowCursor": true,
      "ShowTrack": true
    }
  ]
}

In this example, Ghost #1 and Ghost #2 are enabled. Ghost #3 is not generated because Enabled=false.

Notes About GPX Data

Ghost accuracy depends on the quality of the GPX data.

Condition Effect
GPX point intervals are sparse Larger position and time errors
GPS logs are unstable Ghost position may move unnaturally
Base and Ghost routes differ significantly Distance and time differences become less intuitive
Start positions differ Affects TDIF and the comparison start position
Finish positions differ Affects the final time difference

For more accurate comparisons, align the start position, finish position, and course shape of the Base GPX and Ghost GPX as closely as possible.

inserted by FC2 system