API Format Address
From Openprovider API documentation
(Difference between revisions)
												
			
		 (→Format specification > address)  | 
		|||
| Line 67: | Line 67: | ||
  PT: ^[0-9]{4}-[0-9]{3}$  |   PT: ^[0-9]{4}-[0-9]{3}$  | ||
  RO: ^\d{6}$  |   RO: ^\d{6}$  | ||
| - |   SE: ^  | + |   SE: ^\d{3}\s\d{2}$  | 
  SK: ^SK-\d{3}\s\d{2}$  |   SK: ^SK-\d{3}\s\d{2}$  | ||
|-  | |-  | ||
Revision as of 04:21, 27 April 2018
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 (countries that are not included do not have syntax checking enabled):
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: ^\d{3}\s\d{2}$
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 |