import { UnionOrIntersection } from './common'; import { GeoGridProperties, GeoGridRequestSearchBase, GeoGridResponse, H3Centroid } from './geogrid'; export type H3RequestSearchBase = GeoGridRequestSearchBase; export type H3RequestDepartureSearch = H3RequestSearchBase & { departure_time: string; }; export type H3RequestArrivalSearch = H3RequestSearchBase & { arrival_time: string; }; export type H3Request = { /** * H3 resolution level (higher = more granular cells). * Limitations can be found here: * https://docs.traveltime.com/api/reference/h3#limits-of-resolution-and-traveltime. */ resolution: number; properties: Array; departure_searches?: Array; arrival_searches?: Array; unions?: Array; intersections?: Array; }; export type H3Response = GeoGridResponse;