@yandex/ymaps3-types
Version:
Types for ymaps3 maps library
15 lines (14 loc) • 344 B
TypeScript
/**
* Tuple with geodesic coordinates in longitude latitude order.
* GeoJSON also uses this order https://tools.ietf.org/html/rfc7946#appendix-A.1
*/
type LngLat = [
lon: number,
lat: number,
alt?: number
];
/**
* Readonly version of {@link LngLat}
*/
type ReadonlyLngLat = Readonly<LngLat>;
export { LngLat, ReadonlyLngLat };