UNPKG

s2-tools

Version:

A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.

27 lines 1.06 kB
import type { Pbf as Protobuf } from '../..'; /** A Position is a point on the Earth's surface. */ export declare class GTFSRealtimePosition { #private; /** Degrees North, in the WGS-84 coordinate system. */ latitude: number; /** Degrees East, in the WGS-84 coordinate system. */ longitude: number; /** * Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East. * This can be the compass bearing, or the direction towards the next stop * or intermediate location. * This should not be direction deduced from the sequence of previous * positions, which can be computed from previous data. */ bearing?: number; /** Odometer value, in meters. */ odometer?: number; /** Momentary speed measured by the vehicle, in meters per second. */ speed?: number; /** * @param pbf - The Protobuf object to read from * @param end - The end position of the message in the buffer */ constructor(pbf: Protobuf, end: number); } //# sourceMappingURL=position.d.ts.map