@cloudbase/js-sdk
Version:
cloudbase javascript sdk
20 lines (19 loc) • 551 B
TypeScript
import { ISerializedPoint } from './interface';
export declare class Point {
readonly latitude: number;
readonly longitude: number;
constructor(longitude: number, latitude: number);
parse(key: any): {
[x: number]: {
type: string;
coordinates: number[];
};
};
toJSON(): {
type: string;
coordinates: number[];
};
toReadableString(): string;
static validate(point: ISerializedPoint): boolean;
get _internalType(): import("../utils/symbol").InternalSymbol;
}