DefinedRegion¶
A DefinedRegion says where a shipping rate applies: a country (addressCountry, ISO 3166-1 alpha-2), and optionally regions (ISO 3166-2 codes without the country), postal codes, postal code prefixes or postal code ranges in it. It is listed in OfferShippingDetails shippingDestination, which Google's merchant listings expect.
Modeled on schema.org/DefinedRegion ยท JSON Schema
Example¶
Fields¶
Required: addressCountry.
| Field | Type | Required | Description |
|---|---|---|---|
at_type |
DefinedRegion |
JSON-LD @type, the object's type name. |
|
addressCountry |
CountryCodeEnumeration | Yes | The country, ISO 3166-1 alpha-2 |
addressRegion |
list of string | Regions of the country, ISO 3166-2 subdivision codes without the country, e.g. 'CA' for California | |
postalCode |
list of string | Postal codes | |
postalCodePrefix |
list of string | Postal code prefixes, e.g. '94' for every code starting with 94 | |
postalCodeRange |
list of object | Ranges of postal codes | |
postalCodeRange[].at_type |
PostalCodeRangeSpecification |
JSON-LD @type, the object's type name. |
|
postalCodeRange[].postalCodeBegin |
string | Yes | The first postal code of the range |
postalCodeRange[].postalCodeEnd |
string | Yes | The last postal code of the range |