API Format Address
From Openprovider API documentation
(Difference between revisions)
(Created page with '==Format specification > address== Collection of data fields that contains the following members: {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Field''' …') |
|||
Line 41: | Line 41: | ||
:'''Data''' | :'''Data''' | ||
|Zip code or postal code | |Zip code or postal code | ||
- | |- | + | |- valign="top" |
| | | | ||
:'''Contents''' | :'''Contents''' | ||
- | |Alphanumeric value | + | |Alphanumeric value; for European postal codes, a syntax check is performed based on the following regular expressions: |
+ | AT: ^A-\d{4}$ | ||
+ | BE: ^\d{4}$ | ||
+ | CY: ^CY-\d{4}$ | ||
+ | CZ: ^\d{3}\s\d{2}$ | ||
+ | DE: ^\d{5}$ | ||
+ | DK: ^\d{4}$ | ||
+ | EE: ^\d{5}$ | ||
+ | ES: ^\d{5}$ | ||
+ | FI: ^\d{5}$ | ||
+ | FR: \d{5} | ||
+ | GB: ^(([A-Z][0-9]{1,2})|([A-Z]{2}[0-9]{1,2})|([A-Z]{2}[0-9][A-Z])|([A-Z][0-9][A-Z]))[ ]{0,1}[0-9][A-Z]{2}$ | ||
+ | GR: ^\d{3}(\s)?\d{2}$ | ||
+ | HU: ^\d{4}$ | ||
+ | IT: ^\d{5}$ | ||
+ | LT: ^LT-\d{5}$ | ||
+ | LU: ^L-\d{4}$ | ||
+ | LV: ^LV-\d{4}$ | ||
+ | MT: ^[A-Z]{3}[ ]{0,1}[0-9]{4}$ | ||
+ | NL: ^\d{4}[\s]{0,1}[A-Za-z]{2}$ | ||
+ | PL: ^\d{2}[-]?\d{3}$ | ||
+ | PT: ^[0-9]{4}-[0-9]{3}$ | ||
+ | RO: ^\d{6}$ | ||
+ | SE: ^[0-9]{5}$ | ||
+ | SK: ^SK-\d{3}\s\d{2}$ | ||
|- | |- | ||
|colspan="2" style="background-color:#EEEEEE;"|'''city''' (required) | |colspan="2" style="background-color:#EEEEEE;"|'''city''' (required) |
Revision as of 07:05, 15 July 2014
Format specification > address
Collection of data fields that contains the following members:
Field | address |
street (required) | |
| Street name part of the address, for example Main street |
| Alphanumeric value |
number (required) | |
| House number part of the address |
| Numeric value |
suffix (optional) | |
| House number suffix part of the address |
| Alphanumeric value |
zipcode (required) | |
| Zip code or postal code |
| Alphanumeric value; for European postal codes, a syntax check is performed based on the following regular expressions:
AT: ^A-\d{4}$ BE: ^\d{4}$ CY: ^CY-\d{4}$ CZ: ^\d{3}\s\d{2}$ DE: ^\d{5}$ DK: ^\d{4}$ EE: ^\d{5}$ ES: ^\d{5}$ FI: ^\d{5}$ FR: \d{5} GB: ^(([A-Z][0-9]{1,2})|([A-Z]{2}[0-9]{1,2})|([A-Z]{2}[0-9][A-Z])|([A-Z][0-9][A-Z]))[ ]{0,1}[0-9][A-Z]{2}$ GR: ^\d{3}(\s)?\d{2}$ HU: ^\d{4}$ IT: ^\d{5}$ LT: ^LT-\d{5}$ LU: ^L-\d{4}$ LV: ^LV-\d{4}$ MT: ^[A-Z]{3}[ ]{0,1}[0-9]{4}$ NL: ^\d{4}[\s]{0,1}[A-Za-z]{2}$ PL: ^\d{2}[-]?\d{3}$ PT: ^[0-9]{4}-[0-9]{3}$ RO: ^\d{6}$ SE: ^[0-9]{5}$ SK: ^SK-\d{3}\s\d{2}$ |
city (required) | |
| City or town |
| Alphanumeric value |
state (optional) | |
| State or province |
| Alphanumeric value |
country (required) | |
| ISO-3166 [1] 2-character country code |
| Alphanumeric value |