Quickstart Guide
Global Address can be used to:
Two ways to use the service:
Subscription | Credit |
---|---|
|
|
Real Time
Batch
NOTE: This service deals with multiple languages and scripts. It expects UTF-8 character encoding. Be on the lookout for question marks (?), squares (▖) or other weird characters like �. They may be an indication of encoding issues and may result in data loss. Bad encoding or character loss is not something our service can correct for you.
Real Time
With a REST request, you can include all the input along with the URL for an easy and quick way of sending a single record.
curl -X GET https://address.melissadata.net/V3/WEB/GlobalAddress/doGlobalAddress?id=LICENSE_KEY&a1=22382 Avenida Empresa&loc=Rancho Santa Margarita&admarea=CA&postal=92688&ctry=US&format=JSON
You can also put the URL without the "curl -X GET" command directly into your browser. You can also toggle between getting XML or JSON back using the format input parameter. As you can see, in this example, we are asking for JSON back.
Batch
Batch requests from 1 to 100 records at a time are sent using HTTPS POST. This means you cannot send it in a browser like with HTTPS GET.
Header
Accept: application/json
Make sure the header includes this line:
Body
{ "TransmissionReference":"JSON BATCH TEST", "CustomerID":"LICENSE KEY", "Options":"", "Records":[{ "RecordID":"1", "Organization":"", "AddressLine1":"22382 Avenida Empresa", "AddressLine2":"", "AddressLine3":"", "AddressLine4":"", "AddressLine5":"", "AddressLine6":"", "AddressLine7":"", "AddressLine8":"", "DoubleDependentLocality":"", "DependentLocality":"", "Locality":"CA", "SubAdministrativeArea":"", "AdministrativeArea":"", "PostalCode":"92688", "SubNationalArea":"", "Country":"US" }, { "RecordID":"2", "Organization":"", "AddressLine1":"61 Rue de Douai", "AddressLine2":"75009 Paris", "AddressLine3":"", "AddressLine4":"", "AddressLine5":"", "AddressLine6":"", "AddressLine7":"", "AddressLine8":"", "DoubleDependentLocality":"", "DependentLocality":"", "Locality":"", "SubAdministrativeArea":"", "AdministrativeArea":"", "PostalCode":"", "SubNationalArea":"", "Country":"FR" }] }
Here, we are sending a batch request with 2 records.
Batch Input Name | REST Input | Description | REQUIRED | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TransmissionReference |
t |
Value passed through unchanged to the response for identification or any other purpose | No | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CustomerID |
id |
The License Key issued by Melissa | Yes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Options |
opt |
Delivery Lines
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RecordID
|
Batch Only. Used as a unique identifier for each individual address record | No | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Organization |
org |
The Input Organization | No | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LastName |
last |
US Only. For addresses missing secondary information we can use the last name to append more information for residential addresses. | No | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddressLine1 |
a1 |
The Input Address Line 1 | Yes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddressLine2 |
a2 |
The Input Address Line 2 | No | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddressLine3 |
a3 |
The Input Address Line 3 | No | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddressLine4 |
a4 |
The Input Address Line 4 | No | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddressLine5 |
a5 |
The Input Address Line 5 | No | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddressLine6 |
a6 |
The Input Address Line 6 | No | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddressLine7 |
a7 |
The Input Address Line 7 | No | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddressLine8 |
a8 |
The Input Address Line 8 | No | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DependentLocality |
deploc |
The Input Dependent Locality (Like an district or suburb that is an official part of the address. Rarely used) | No | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DoubleDependentLocality |
ddeploc |
The Input Double Dependent Locality (An area even smaller than dependent locality but larger than the thoroughfare that is an official part of the address. Very rarely used) | No | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Locality |
loc |
The Input Locality (Also called City, Canton, etc. The most common area name for almost all countries) | No | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SubAdministrativeArea |
subadmarea |
The Input SubAdministrative Area (An area that is bigger than the locality but smaller than the Administrative Area that is an official part of the address. Very rarely used) | No | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AdministrativeArea |
admarea |
The Input Administrative Area (Also common called State, Municipality, etc. Common in larger countries) | No | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SubNationalArea |
subnatarea |
The Input Sub National Area (Area larger than Administrative Area but not the whole country. Very rarely used as part of the address) | No | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PostalCode |
postal |
The Input Postal Code | No | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Country |
ctry |
The Country ISO2, ISO3, or spelled out name | Yes |
Most organizations are somewhat limited in how much control they have over how users enter addresses. Here are some best practices to get the most of the service and to avoid possible issues.
Address Format
The service is designed for full addresses. In most cases, this means a house number, a thoroughfare (street name), a subpremise if present (like an apartment or suite), a locality, an administrative area if used, a postal code if used, and the country. Some countries may have other common inputs but the main concept is that of a full address. If you have input that is not a full address (like just a cross section, a point of interest, or just an area), do not expect a full verification. Also, if you have an address with non-address information (like descriptors/directions such as "turn left the river"), the likelihood of a correct verification drops significantly.
Try not to have repeated information in the input.
The address may be fully entered in the address lines:
AddressLine1=22382 Avenida Empresa AddressLine2=Rancho Santa Margarita, CA 92688 Country=US
Or as parsed inputs:
AddressLine1=22382 Avenida Empresa Locality=Rancho Santa Margarita AdministrativeArea=CA PostalCode=92688 Country=US
Our recommendation is to use the format that you have. If you have the fields parsed out already, used the parsed input fields and do not combine them to use just the address lines.
Handling Scripts and Languages
Global Address Web Service has the ability to change from one script to another using the OutputScript option. This is not to be confused with language, as multiple languages can belong to the same script. For example, both English and Spanish belong to the Latin script. The scripts that we currently support are:
By setting the OutputScript to Native
, we will always return the script of the native language of that country. Setting it to Latn
will return it in latin. While those are available to use, we actually recommend using the NoChange option which will keep the output in the same script as the input. This is recommended because, in our experience, the input is in a particular script for a reason. Our main method of conversion is to use transliteration: a phonetic conversion keeping the sound of the word as close as possible to the original. This usually means some meaning or intention from the input is lost when doing that. To maintain the input integrity as much as possible, it is best to keep it in the script it came in as.
Real Time
Here is a response of the real time request above.
3.0.1.150 1 1 AC16,AV24,GS05 22382 Avenida Empresa;Rancho Santa Margarita, CA 92688-2112 22382 Avenida Empresa Rancho Santa Margarita, CA 92688-2112 Rancho Santa Margarita Orange CA 92688-2112 S 92688211282 United States of America US USA 840 US-CA Avenida Empresa Avenida Empresa 22382 33.637572 -117.606868
Batch
Here is the response from the sample batch request.
{ "Version": "3.0.1.150", "TransmissionReference": "JSON BATCH TEST", "TransmissionResults": "", "TotalRecords": "2", "Records": [{ "RecordID": "1", "Results": "AC02,AC03,AC16,AV24,GS05", "FormattedAddress": "22382 Avenida Empresa;Rancho Santa Margarita, CA 92688-2112", "Organization": "", "AddressLine1": "22382 Avenida Empresa", "AddressLine2": "Rancho Santa Margarita, CA 92688-2112", "AddressLine3": "", "AddressLine4": "", "AddressLine5": "", "AddressLine6": "", "AddressLine7": "", "AddressLine8": "", "SubPremises": "", "DoubleDependentLocality": "", "DependentLocality": "", "Locality": "Rancho Santa Margarita", "SubAdministrativeArea": "Orange", "AdministrativeArea": "CA", "PostalCode": "92688-2112", "AddressType": "S", "AddressKey": "92688211282", "SubNationalArea": "", "CountryName": "United States of America", "CountryISO3166_1_Alpha2": "US", "CountryISO3166_1_Alpha3": "USA", "CountryISO3166_1_Numeric": "840", "CountrySubdivisionCode": "US-CA", "Thoroughfare": "Avenida Empresa", "ThoroughfarePreDirection": "", "ThoroughfareLeadingType": "", "ThoroughfareName": "Avenida Empresa", "ThoroughfareTrailingType": "", "ThoroughfarePostDirection": "", "DependentThoroughfare": "", "DependentThoroughfarePreDirection": "", "DependentThoroughfareLeadingType": "", "DependentThoroughfareName": "", "DependentThoroughfareTrailingType": "", "DependentThoroughfarePostDirection": "", "Building": "", "PremisesType": "", "PremisesNumber": "22382", "SubPremisesType": "", "SubPremisesNumber": "", "PostBox": "", "Latitude": "33.637572", "Longitude": "-117.606868" }, { "RecordID": "2", "Results": "AC02,AC09,AC16,AC17,AV24,GS05", "FormattedAddress": "61 RUE DE DOUAI;9E ARRONDISSEMENT;75009 PARIS;FRANCE", "Organization": "", "AddressLine1": "61 Rue de Douai", "AddressLine2": "9E Arrondissement", "AddressLine3": "75009 Paris", "AddressLine4": "", "AddressLine5": "", "AddressLine6": "", "AddressLine7": "", "AddressLine8": "", "SubPremises": "", "DoubleDependentLocality": "", "DependentLocality": "9E Arrondissement", "Locality": "Paris", "SubAdministrativeArea": "Paris", "AdministrativeArea": "Paris", "PostalCode": "75009", "AddressType": "", "AddressKey": "", "SubNationalArea": "Paris", "CountryName": "France", "CountryISO3166_1_Alpha2": "FR", "CountryISO3166_1_Alpha3": "FRA", "CountryISO3166_1_Numeric": "250", "CountrySubdivisionCode": "FR-75", "Thoroughfare": "Rue de Douai", "ThoroughfarePreDirection": "", "ThoroughfareLeadingType": "Rue de", "ThoroughfareName": "Douai", "ThoroughfareTrailingType": "", "ThoroughfarePostDirection": "", "DependentThoroughfare": "", "DependentThoroughfarePreDirection": "", "DependentThoroughfareLeadingType": "", "DependentThoroughfareName": "", "DependentThoroughfareTrailingType": "", "DependentThoroughfarePostDirection": "", "Building": "", "PremisesType": "", "PremisesNumber": "61", "SubPremisesType": "", "SubPremisesNumber": "", "PostBox": "", "Latitude": "48.8836040366693", "Longitude": "2.32918780839551" }] }
Response Level
Output Name | Description |
---|---|
Version |
The current revision number of Global Address. |
TransmissionReference |
Returned value will be the same as the input TransmissionReference to be used as a unique identifier. |
Total Records |
The total number of records returned. |
TransmissionResults |
Service Errors (SE Codes) and General Transmission Errors (GE Codes) |
Results |
Shows you the result of the address verification with codes for status, error, and changes. See the Results section below for more details. |
Record Level
Output Name | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Latitude |
The Latitude of the output address | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Longitude |
The Longitude of the output address | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CountryName |
The official name of the country | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CountryISO3166_1_Alpha2 |
The official ISO 3166 2 character code of the country | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CountryISO3166_1_Alpha3 |
The official ISO 3166 3 character code of the country | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CountryISO3166_1_Numeric |
The official ISO 3166 number of the country | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CountrySubdivisionCode |
The ISO 3166-2 Subdivisioncode value for the address | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddressType |
The type of address. US
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddressKey |
Country dependent field.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Output Group 1: The full address as a mailing label | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FormattedAddress |
This is the Mailing Label version of the address with all pieces included in the format for the country. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Output Group 2: The full address in database format | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Organization |
The organization tied to the address. Will use the input organization if one if one from the database is not available for override. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddressLine1 |
The first line of the address in database format. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddressLine2 |
The second line of the address in database format. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddressLine3 |
The third line of the address in database format. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddressLine4 |
The fourth line of the address in database format. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddressLine5 |
The fifth line of the address in database format. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddressLine6 |
The sixth line of the address in database format. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddressLine7 |
The seventh line of the address in database format. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AddressLine8 |
The eighth line of the address in database format. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Output Group 3: The output as parsed fields | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SubPremises |
The subdivided information within a single house number like a suite or apartment. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SubPremisesType |
The type value of the SubPremises. Ex: Suite | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SubPremisesNumber |
The number value of the SubPremises. Ex: 10A | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Building |
The name of the building attached to the address. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PremisesType |
The house number type of the address. Ex: No. (Rarely used) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PremisesNumber |
The house number value of the address | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Locality |
The most common area value, also known as city or canton. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Thoroughfare |
The full named street that correspond to the address. This value includes the Pre Direction, Leading Type, Name, Trailing Type, and Post Direction. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ThoroughfarePreDirection |
The directional that preceeds the thoroughfare name. Ex: North | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ThoroughfareLeadingType |
The street type of the thoroughfare that preceeds the thoroughfare name. EX: Rue de | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ThoroughfareName |
The main name of the thoroughfare. Ex: Main | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ThoroughfareTrailingType |
The street type of the thoroughfare that comes after the thoroughfare name. EX: Blvd | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ThoroughfarePostDirection |
The directional that comes after the thoroughfare name. Ex: South | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DependentThoroughfare |
A second (usually smaller) thoroughfare value attached to the address if necessary. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DependentThoroughfarePreDirection |
The predirection of the dependent thoroughfare | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DependentThoroughfareLeadingType |
The leading type of the dependent thoroughfare | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DependentThoroughfareName |
The name of the dependent thoroughfare | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DependentThoroughfareTrailingType |
The trailing type of the dependent thoroughfare | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DependentThoroughfarePostDirection |
The post direction of the dependent thoroughfare | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DependentLocality |
Dependent Locality is the area smaller than the locality but bigger than the thoroughfare. Rarely used. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DoubleDependentLocality |
Double Dependent Locality is the area smaller than a dependent locality but bigger than a thoroughfare. Very rarely used. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SubAdministrativeArea |
The area smaller than an Administrative Area but bigger than a city (like a county). Often used in larger countries but rarely included as part of an official address. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AdministrativeArea |
The common administrative division larger than locality, also called State, Municipality…) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PostalCode |
The postal code | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SubNationalArea |
The area larger than administrative area but smaller than the nation. Rarely used. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PostBox |
The post office box value if it exists | MelissaAddressKey |
This is a globally unique and persistent key for the location, even if parts of the address change. When an address is fully validated this field returns a 10-digit proprietary key for the address. With AddressKey (US and Canada only), if an address zip code changes, the AddressKey would also change. Melissa Address Key (MAK) is independent and will not change. This makes MAK a good way to permanently identify and locate addresses. Once you have a MAK it can be used as an input in most Melissa services and thus is a good tool for deduping. Currently available for US, CA, GB, IT, SI, and PT with many more countries planned for the future. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MelissaAddressKeyBase |
Every full address has its own Melissa Address Key (MAK). If that address is a suites or apartment, we will also return a Melissa Address Key Base (BaseMAK) that corresponds to the overall building. This provides a link between all the individual MAK addresses that belong to the same building. This field also returns a 10-digit proprietary key. Note, if we can validate the address to the building but not the suite, we can return just the BaseMAK. Currently available for countries that have support for MelissaAddressKey. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DeliveryIndicator |
This field returns a one character code that indicates if the address is a residence (R), business (B), or unknown (U). It is not available for all countries. Currently, this field is available for the US, GB, and NL with more countries planned in the future. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DeliveryPointSuffix |
This is a country dependent field. This field returns an identifier that represents asuffix code usually tied to a delivery point.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PostalCodeType |
This is a country dependent field. This field returns an identifier that represents the type of postal code returned. Currently only the US uses this field.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PostOfficeLocation |
This field, if available for a country, returns the value that is associated to the location of the post office in relation to the address. This value may or may not be used in the official mailing address for the country in question. Currently, these are the countries we will return the data for: Serbia and Slovakia.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SubPremiseLevel |
This is a secondary piece of subpremise information used to describe a more generic division of the subpremise. For example, if you have an address like “1123 Market Way, Floor 12 Apt 25A” then the Subpremises will be “Apt 25A” and the SubPremiseLevel will be “Floor 12”. This value is not widely used in official address data. SubPremiseLevelType and SubPremiseLevelNumber make up the SubPremiseLevel. In our example, the SubPremiseLevelType is “Floor” and the SubPremiseLevelNumber is “12”. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SubBuilding |
This value describes a smaller division of the building. For example, if an address has a building name that is a part of a larger set of buildings, then the subbuilding may be populated. SubBuildingType and SubBuildingNumber make up the parts of SubBuilding. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
UTC |
Returns the Coordinated Universal Time number in format of UTC+#. Note that there are timezones that are not whole hours only, like UTC+9:30. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DST |
Returns a Y or a N based on if the country or area of the input observes daylight savings time. Note that the value returned by the UTC output does not change based on whether the country/area is currently in daylight savings time for not. We will only return the standard timezone and this flag to indicate is daylight savings is observed. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CensusKey |
This is a country dependent field. It is designed to return a code that correspond to the census division information for a country. Currently, this field is only returned for the US. US: The CensusKey for the US is a 15 or 16 digit code that is made up of the following components: FIPS Code, Census Tract, Census Block, and CensusBlockGroup if it exists |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Extras |
This Extras section is a place where we will put less used output fields our more granular country specific output fields. This section is structured differently so that we have the flexibility to expand them in the future. These outputs structured as key/value pairs and the output values present in this section will depend on the options you have selected. The output format for this will look like this example below:
<Extras> <root> <extra> <key>CBSACode</key> <value>31080</value> </extra> <extra> <key>CBSADivisionCode</key> <value>11244</value> </extra> <extra> <key>CBSADivisionLevel</key> <value>Metropolitan Statistical Area</value> </extra> </root> </Extras> |
Extras
Output Name | Activating Option | Description |
---|---|---|
DaylightSavingsTimezone |
ExtendedDateTime | Worldwide. The Daylight Savings Time Zone Name for the output address |
DaylightSavingsUTC |
ExtendedDateTime | Worldwide. The UTC value for the output address when they are observing Daylight savings |
LocalDateTime |
ExtendedDateTime | [BETA] - Worldwide. The local date time value calculated from the OriginDateTime input taking into account the whether the output address area observes daylight savings and the time period when it observes daylight savings. Note that OriginaDateTime is specified as an option rather than a regular input value. |
StandardTimezone |
ExtendedDateTime | Worldwide. The Standard Time Zone Name for the output address |
UPRN |
GBExtras | GB Only. Returns the Unique Property Reference Number created and maintained by Ordnance Survey. |
CarrierRoute |
USExtras | US Only. Carrier Route Code assigned by the USPS |
CBSA Outputs | USExtras | US Only. Core-Based Statistical Areas (CBSA) outputs. These values are assigned by the US Census.
|
CensusBlock |
USExtras | US Only. The Census block number from the most recent yearly census |
CensusTract |
USExtras | US Only. The Census tract number from the most recent yearly census |
CongressionalDistrict |
USExtras | US Only. The congressional district number for the address |
CountyFIPS |
USExtras | US Only. The Census FIPS number from the most recent yearly census |
CountyName |
USExtras | US Only. The county name that corresponds to the county FIPS code |
CountySubdivisionCode |
USExtras | US Only. The county subdivision code value as defined by the US Census |
CountySubdivisionName |
USExtras | US Only. The county subdivision name value as defined by the US Census |
DeliveryPointCheckDigit |
USExtras | US Only. The single digit value that acts as a checksum to the delivery point code |
DeliveryPointCode |
USExtras | US Only. The 2 digit delivery point code as assigned by the USPS |
ElementarySchoolDistrictCode |
USExtras | US Only. Returns a 5 digit string representing the elementary school district code for the address |
ElementarySchoolDistrictName |
USExtras | US Only. Returns a 5 digit string representing the elementary school district code for the address |
PlaceCode |
USExtras | US Only. The FIPS Place code as defined by the Census |
PlaceName |
USExtras | US Only. The FIPS Place name as defined by the Census |
SecondarySchoolDistrictCode |
USExtras | US Only. The secondary school district code for the address |
SecondarySchoolDistrictName |
USExtras | US Only. The secondary school district name for the address |
StateDistrictLower |
USExtras | US Only. Returns a 3 digit string representing the Lower State District Code for the requested record |
StateDistrictUpper |
USExtras | US Only. Returns a 3 digit string representing the Upper State District Code for the requested record |
UnifiedSchoolDistrictCode |
USExtras | US Only. Returns a 5 digit string representing the Unified School District Code if the address is in a unified school district |
UnifiedSchoolDistrictNameString |
USExtras | US Only. Returns a 5 digit string representing the Unified School District Name if the address is in a unified school district |
The Results field returned back by the service will tell all the status, error and change information about the output address returned back to you. The results are split into four main categories:
AV Codes
AE Codes
These are error codes that will tell you what type of error we encountered.
AC Codes
These are change codes that will tell you which address pieces we changed from the input to the output. They include field that were blank in the input and added in the output.
GS & GE Codes
For the users who get geocoding information, this will tell you to what precision level the latitude and longitude appended are.
Using Result Codes Programmatically
The concept behind the result codes are that the service will include a full list of delimited result codes, many of which may not be important to you. As a user, you should decide what codes define a good address for you and use a string.Contains search to look for those codes. If you find it, you have a good address. If you don't, then you have a bad address. You can also cascade them into 3 or more condition layers. Here is a common example:
Result Code Web Service Error
If(Results.Contains("AV23") or Results.Contains("AV24") or Results.Contains("AV25")) { /*Handle Good Address*/ } Else if(Results.Contains("AV22") or Results.Contains("AV14") or Results.Contains("AV13")) { /*Handle Suspect Address*/ } Else { /*Handle Bad Address*/ }
Code | Description | Recommendation |
---|---|---|
AS09 |
Input Country not enabled for License | Contact your CSR to add new countries. |
AV25 |
Full Verification to SubPremise | Good |
AV24 |
Full Verification to House Number | Good |
AV23 |
Full Verification to Thoroughfare. House Number data not available. | Good |
AV22 |
Full Verification to Locality. | Medium. Only locality data was available, odds on quality is dependent on source of input. |
AV14 |
Address Verified to the House Number. Issue found with SubPremise. | Medium. Most of the address was good, just bad/missing suite. |
AV13 |
Address Verified to the Thoroughfare. Issue found with House Number. | Medium. Most of the address was good, house number not verified. |
AV12 |
Address Verified to the Locality. Could not verify any delivery address data. | Bad. Could not verify the address but found a good locality value. |
AV11 |
Address Verified to the Administrative Area only. | Bad. Could not verify the address but found a good administrative area value. |
Common Transmission Errors
For a list of the common transmission errors, see the General Info - Response Level Errors page.
For the full list of all possible result codes, please visit our Result Wiki page here.