Geography
Latitude, longitude and postal codes. See all field types and the options every field takes.
latitude
Latitude in degrees.
| Parameter | Values | Default | Description |
|---|---|---|---|
min |
number | -90 |
Lower bound, at least -90. |
max |
number | 90 |
Upper bound, at most 90. |
Also takes the common options.
- { name: lat, type: latitude, min: -33.9, max: 5.3 }longitude
Longitude in degrees.
| Parameter | Values | Default | Description |
|---|---|---|---|
min |
number | -180 |
Lower bound, at least -180. |
max |
number | 180 |
Upper bound, at most 180. |
Also takes the common options.
- { name: lng, type: longitude, min: -73.9, max: -34.8 }postcode
Postal code: 12345-678 for BR, 12345 for US, 1234-567 otherwise.
| Parameter | Values | Default | Description |
|---|---|---|---|
country |
text | — | BR or US; other values use the generic form. |
Also takes the common options and textual constraints.
- { name: zip, type: postcode, country: US }