API Format Address

From Openprovider API documentation

Jump to: navigation, search

Format specification > address

Collection of data fields that contains the following members:

Field address
street (required)
Data
Street name part of the address, for example Main street
Contents
Alphanumeric value
number
Data
House number part of the address
Contents
Numeric value
suffix (optional)
Data
House number suffix part of the address
Contents
Alphanumeric value
zipcode (required)
Data
Zip code or postal code
Contents
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)
Data
City or town
Contents
Alphanumeric value
state (optional)
Data
State or province
Contents
Alphanumeric value
country (required)
Data
ISO-3166 [1] 2-character country code
Contents
Alphanumeric value
Views
Personal tools