UNPKG

ojp-sdk-legacy

Version:

OJP (Open Journey Planner) Javascript SDK (legacy version)

16 lines (15 loc) 700 B
import * as GeoJSON from 'geojson'; import { TreeNode } from "../xml/tree-node"; export declare class GeoPosition { longitude: number; latitude: number; properties: GeoJSON.GeoJsonProperties | null; constructor(longitude: number, latitude: number); static initWithStringCoords(longitudeS: string | null, latitudeS: string | null): GeoPosition | null; static initWithLocationTreeNode(locationTreeNode: TreeNode): GeoPosition | null; static initWithFeature(feature: GeoJSON.Feature): GeoPosition | null; asLngLat(): [number, number]; asLatLngString(roundCoords?: boolean): string; asPosition(): GeoJSON.Position; distanceFrom(pointB: GeoPosition): number; }