Latitude and longitude are used in a variety of applications, it feels like this simple validation is missing, currently is possible to validate chaining min and max but it would be better if this validation was abstracted away.
const latitude = z.number().min(-90).max(90)
const longitude = z.number().min(-180).max(180)
// Proposed
const latitude = z.number().latitude()
const longitude = z.number().longitude()
Latitude and longitude are used in a variety of applications, it feels like this simple validation is missing, currently is possible to validate chaining min and max but it would be better if this validation was abstracted away.