import { Filter , FilterMeta , LatLon } from './meta_filter' ; export type GeoBoundingBoxFilterMeta = FilterMeta & { params : { bottom_right : LatLon ; top_left : LatLon ; } ; } ; export type GeoBoundingBoxFilter = Filter & { meta : GeoBoundingBoxFilterMeta ; geo_bounding_box : any ; } ; export const isGeoBoundingBoxFilter = ( filter ) : filter is GeoBoundingBoxFilter => filter && filter . geo_bounding_box ; export const getGeoBoundingBoxFilterField = ( filter ) => { return ( filter . geo_bounding_box && Object . keys ( filter . geo_bounding_box ) . find ( ( key ) => key !== 'ignore_unmapped' ) ) ; } ;