Site object

Implements

Constructors

Properties

course: Types.Course

course the site is associated with

Accessors

  • get cache(): {
        _version?: number;
        alt?: number;
        lat?: number;
        lon?: number;
        waypoints?: Types.Waypoint[];
    }
  • Returns {
        _version?: number;
        alt?: number;
        lat?: number;
        lon?: number;
        waypoints?: Types.Waypoint[];
    }

  • get cutoffs(): WaypointCutoff[]
  • optional cutoffs for the site

    Returns WaypointCutoff[]

  • get hasDelay(): undefined | boolean
  • hasDelay - true if the site has a delay

    Returns undefined | boolean

  • get id(): undefined | string | symbol
  • optional id for the site

    Returns undefined | string | symbol

  • get isFinish(): undefined | boolean
  • isFinish - true if the site is the finish of the course

    Returns undefined | boolean

  • set isFinish(v: undefined | boolean): void
  • isFinish - true if the site is the finish of the course

    Parameters

    • v: undefined | boolean

    Returns void

  • get isStart(): undefined | boolean
  • isStart - true if the site is the start of the course

    Returns undefined | boolean

  • set isStart(v: undefined | boolean): void
  • isStart - true if the site is the start of the course

    Parameters

    • v: undefined | boolean

    Returns void

  • get name(): undefined | string
  • optional name for the site

    Returns undefined | string

  • get percent(): number
  • percent of total distance along the track where the site is located

    Returns number

  • set percent(v: number): void
  • percent of total distance along the track where the site is located

    Parameters

    • v: number

    Returns void

Methods

  • refresh the latitude, longitude, and altitude of the site

    Returns { alt: number; lat: number; lon: number }