UNPKG

@obstinado/gpx-builder

Version:
52 lines (51 loc) 1.57 kB
import { Extensions, WayPoint } from '../../../types'; import Link from './Link'; export interface PointOptions { ageofdgpsdata?: number; cmt?: string; desc?: string; dgpsid?: number; ele?: number; extensions?: Extensions; fix?: number; geoidheight?: number; hdop?: number; link?: Link; magvar?: number; name?: string; pdop?: number; sat?: number; src?: string; sym?: string; time?: Date; type?: string; vdop?: number; } export default class Point { protected lat: number; protected lon: number; protected ele: number | null; protected time: Date | null; protected magvar: number | null; protected geoidheight: number | null; protected name: string | null; protected cmt: string | null; protected desc: string | null; protected src: string | null; protected link: Link | null; protected sym: string | null; protected type: string | null; protected fix: number | null; protected sat: number | null; protected hdop: number | null; protected vdop: number | null; protected pdop: number | null; protected ageofdgpsdata: number | null; protected dgpsid: number | null; protected extensions: Extensions | null; /** * @see http://www.topografix.com/gpx/1/1/#type_wptType */ constructor(lat: number, lon: number, { ele, time, magvar, geoidheight, name, cmt, desc, src, link, sym, type, fix, sat, hdop, vdop, pdop, ageofdgpsdata, dgpsid, extensions, }?: PointOptions); toObject(): WayPoint; }