package utils import ( "context" ) func ValidCoords(ctx context.Context, value float64, key string) bool { switch key { case VALID_LATITUDE: if value >= -90 && value <= 90 { return true } case VALID_LONGITUDE: if value >= -180 && value <= 180 { return true } } return false }