UNPKG

@rr0/place

Version:

Place representation API

28 lines (27 loc) 933 B
import { PlaceLocation } from "./location/PlaceLocation.js"; import { RR0Data, RR0Event } from "@rr0/data"; export type Elevation = { elevation: number; data?: any; }; export declare class Place extends RR0Data<"place"> { readonly locations: PlaceLocation[]; readonly elevation?: Elevation; readonly dirName?: string; readonly id: string; readonly events: RR0Event[]; constructor(locations: PlaceLocation[], elevation?: Elevation, dirName?: string, /** * Remote geo IP service specific data. */ data?: any); /** * * @param {float} lat Latitude in decimal degrees. North is positive. * @param {float} lng Longitude in decimal degrees. East is positive. */ static fromLocation(lat: number, lng: number): Place; static fromDMS(latLng: string): Place; toString(): string; } export declare const placeDirName = "place/systeme/solaire/planete/terre/";