Skip to content

edmondscommerce/xctrack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Tools for Creating XCTrack Files

Based roughly on this

However also based upon looking at files generated by XCTrack that look more like this:

{
  "taskType": "CLASSIC",
  "version": 1,
  "turnpoints": [
    {
      "radius": 400.0,
      "waypoint": {
        "lon": -2.4222190380096436,
        "lat": 54.20397186279297,
        "altSmoothed": 0.0,
        "name": "WHE-0",
        "description": "WHE-0",
        "isUnknown": false
      },
      "type": "TAKEOFF"
    },
    {
      "radius": 1000.0,
      "waypoint": {
        "lon": -2.4273769855499268,
        "lat": 54.19684600830078,
        "altSmoothed": 0.0,
        "name": "WHE-1",
        "description": "WHE-1",
        "isUnknown": false
      },
      "type": "SSS"
    },
    {
      "radius": 1400.0,
      "waypoint": {
        "lon": -2.3886594772338867,
        "lat": 54.24782180786133,
        "altSmoothed": 0.0,
        "name": "WHE-2",
        "description": "WHE-2",
        "isUnknown": false
      },
      "type": "ESS"
    },
    {
      "radius": 1400.0,
      "waypoint": {
        "lon": -2.3691511154174805,
        "lat": 54.22072219848633,
        "altSmoothed": 0.0,
        "name": "WHE-3",
        "description": "WHE-3",
        "isUnknown": false
      }
    }
  ],
  "sss": {
    "type": "RACE",
    "direction": "ENTER",
    "timeGates": [
      "12:00:00Z"
    ]
  },
  "goal": {
    "type": "LINE",
    "deadline": "23:00:00Z"
  }
}

Install

For now just download the files from here. I need to add it to packagist

Instructions

Use the Factory to generate a Task object from either a passed in array or the $_GET super global

Download File Example

For a simple example of using this to serve a download, see ./httpdocs/xctsk-download.php

Tests

Basic tests - run them using:

vendor/bin/phpunit tests

About

Utilities for working with XCTrack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages