types.ts (1046B)
1 export type GeometryPoint = { 2 type: string; 3 coordinates: [number, number]; 4 }; 5 6 export type GeometryPolygon = { 7 type: string; 8 coordinates: Array<Array<[number, number]>>; 9 }; 10 11 export type GeolocationPointTuple = [number, number]; 12 13 export type GeolocationAddress = { 14 primary: string; 15 admin: string; 16 country: string; 17 }; 18 19 export type GeolocationPoint = { 20 lat: number; 21 lng: number; 22 }; 23 24 export type LocationPoint = GeolocationPoint & { 25 error: GeolocationPoint; 26 }; 27 28 export type GeocoderReverseResult = { 29 id: number; 30 name: string; 31 admin1_id: string | number; 32 admin1_name: string; 33 country_id: string; 34 country_name: string; 35 latitude: number; 36 longitude: number; 37 }; 38 39 export type IClientGeolocationPosition = GeolocationPoint & { 40 accuracy?: number; 41 altitude?: number; 42 altitude_accuracy?: number; 43 }; 44 45 export type GeolocationLatitudeFmtOption = "dms" | "d" | "dm"; 46 47 export type LocationBasis = { 48 id: string; 49 point: GeolocationPoint; 50 address?: GeolocationAddress; 51 };