"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getBboxQueryParam = getBboxQueryParam;
const getTopLevelPredicate_1 = require("../commonHelpers/getTopLevelPredicate");
/**
 * @private
 * Extracts the bbox value that the search should be filtered by.
 * Also validates that the bbox predicate is not combined in some
 * invalid way with other predicates.
 *
 * @param query query to extract the bbox predicate from
 * @returns the bbox value to filter by
 */
function getBboxQueryParam(query) {
    const bboxPredicate = (0, getTopLevelPredicate_1.getTopLevelPredicate)("bbox", query.filters);
    return bboxPredicate === null || bboxPredicate === void 0 ? void 0 : bboxPredicate.bbox;
}
//# sourceMappingURL=getBboxQueryParam.js.map