diff --git a/src/validation/Validator.ts b/src/validation/Validator.ts index e568bd535f..d1bfcc3c7d 100644 --- a/src/validation/Validator.ts +++ b/src/validation/Validator.ts @@ -374,14 +374,14 @@ export class Validator { * Checks if a given value is a latitude. */ isLatitude(value: unknown): boolean { - return (typeof value === "number" || this.isString(value)) && this.isLatLong(`0,${value}`); + return (typeof value === "number" || this.isString(value)) && this.isLatLong(`${value},0`); } /** * Checks if a given value is a longitude. */ isLongitude(value: unknown): boolean { - return (typeof value === "number" || this.isString(value)) && this.isLatLong(`${value},0`); + return (typeof value === "number" || this.isString(value)) && this.isLatLong(`0,${value}`); } /**