DefinitelyTyped/types/geodesy/osgridref.d.ts
2019-11-22 08:42:02 -08:00

23 lines
528 B
TypeScript

/*
* @format
*/
import { Datum } from '.';
import LatLonEllipsoidal, { Dms } from './latlon-ellipsoidal-datum';
declare class OsGridRef {
easting: number;
northing: number;
constructor(easting: number, northing: number);
toLatLon(datum?: Datum): LatLon_OsGridRef;
static parse(gridref: string): OsGridRef;
toString(digits?: number): string;
}
declare class LatLon_OsGridRef extends LatLonEllipsoidal {
toOsGrid(): OsGridRef;
}
export { OsGridRef as default, LatLon_OsGridRef as LatLon, Dms };