UNPKG

@golemio/pid

Version:
24 lines (23 loc) 1 kB
import { CustomValidator } from "@golemio/core/dist/shared/express-validator"; export declare class CustomBBoxValidator { /** * Bounding box format: topLat,topLon,bottomLat,bottomLon * 4 positive or negative floating point numbers separated by commas * @example 50.073619,14.414826,50.092867,14.438086 */ private static readonly BOUNDING_BOX_REGEX; /** * Redis/Valkey GEO commands support latitude values only in the range [-85.05112878, 85.05112878]. * * See also: * <https://redis.io/docs/latest/commands/geoadd/#:~:text=Valid%20latitudes%20are%20from%20%2D85.05112878%20to%2085.05112878%20degrees.>, * <https://github.com/redis/redis/issues/13756>. */ private static readonly MIN_LATITUDE; private static readonly MAX_LATITUDE; private static readonly MIN_LONGITUDE; private static readonly MAX_LONGITUDE; static validate: CustomValidator; private static isLatitudeValid; private static isLongitudeValid; }