Reverse GeoCoder:Response: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 54: | Line 54: | ||
The following elements are the basic options for each request. These apply to the entire response, not the individual records. | The following elements are the basic options for each request. These apply to the entire response, not the individual records. | ||
<h3 | <h3 class="h3grey">Version</h3> | ||
:This is a string value that is the current revision number of Reverse GeoCoder. | :This is a string value that is the current revision number of Reverse GeoCoder. | ||
Line 66: | Line 66: | ||
<h3 | <h3 class="h3grey">Transmission Reference</h3> | ||
:This is a string value that serves as a unique identifier for this set of records. It is returned as sent by the Request Array, allowing you to match the Response to the Request. | :This is a string value that serves as a unique identifier for this set of records. It is returned as sent by the Request Array, allowing you to match the Response to the Request. | ||
Line 78: | Line 78: | ||
<h3 | <h3 class="h3grey">Transmission Results</h3> | ||
:This is a string value that lists error codes from any errors caused by the most recent request as a whole. | :This is a string value that lists error codes from any errors caused by the most recent request as a whole. | ||
Line 92: | Line 92: | ||
<h3 | <h3 class="h3grey">Results</h3> | ||
:This is a string value with comma delimited status, error codes, and change codes for the record. | :This is a string value with comma delimited status, error codes, and change codes for the record. | ||
Line 106: | Line 106: | ||
<h3 | <h3 class="h3grey">Total Records</h3> | ||
:Displays the total number of records returned. | :Displays the total number of records returned. | ||
Line 132: | Line 132: | ||
<h3 | <h3 class="h3grey">AddressLine1</h3> | ||
:Returns the street address (street number and street name) that corresponds to the input geo coordinates. | :Returns the street address (street number and street name) that corresponds to the input geo coordinates. | ||
Line 144: | Line 144: | ||
<h3 | <h3 class="h3grey">SuiteName</h3> | ||
:Returns the suite name of the address returned. Values that could be returned are: Ste, Apt., etc. | :Returns the suite name of the address returned. Values that could be returned are: Ste, Apt., etc. | ||
Line 156: | Line 156: | ||
<h3 | <h3 class="h3grey">SuiteCount</h3> | ||
:Returns the number of suites in a particular building. Zero will be returned if the address has a no suites (a single delivery point). | :Returns the number of suites in a particular building. Zero will be returned if the address has a no suites (a single delivery point). | ||
Line 168: | Line 168: | ||
<h3 | <h3 class="h3grey">City</h3> | ||
:Returns the city of the output address. | :Returns the city of the output address. | ||
Line 180: | Line 180: | ||
<h3 | <h3 class="h3grey">State</h3> | ||
:Returns the State of the output address. | :Returns the State of the output address. | ||
Line 192: | Line 192: | ||
<h3 | <h3 class="h3grey">PostalCode</h3> | ||
:Returns the Postal Code of the output address. | :Returns the Postal Code of the output address. | ||
Line 204: | Line 204: | ||
<h3 | <h3 class="h3grey">AddressKey</h3> | ||
:Returns a unique identifier for an address. This key can be used with other current and future Melissa Data services. | :Returns a unique identifier for an address. This key can be used with other current and future Melissa Data services. | ||
Line 216: | Line 216: | ||
<h3 | <h3 class="h3grey">Latitude</h3> | ||
:Returns the latitude geographic coordinate of the output address. | :Returns the latitude geographic coordinate of the output address. | ||
Line 228: | Line 228: | ||
<h3 | <h3 class="h3grey">Longitude</h3> | ||
:Returns the longitude geographic coordinate of the output address. | :Returns the longitude geographic coordinate of the output address. | ||
Line 240: | Line 240: | ||
<h3 | <h3 class="h3grey">Distance</h3> | ||
:Returns the distance between the input coordinates and the output coordinates. A distance of zero indicates that an exact address match was returned for the input geographic coordinates. | :Returns the distance between the input coordinates and the output coordinates. A distance of zero indicates that an exact address match was returned for the input geographic coordinates. | ||
Revision as of 19:14, 8 March 2019
Reverse GeoCoder Navigation | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
| ||||||||||
| ||||||||||
| ||||||||||
Sample Code |
A response is the result of a request. This consists of returned results codes and returned addresses, depending on the input provided.
Depending on the protocol used to make the request, the response will be in a certain protocol. Reverse GeoCoder supports these response protocols: XML, and JSON.
Field Names
This is a list of the response field names and their protocol naming conventions.
Field Name | Level | JSON/XML |
---|---|---|
Version | Response (Base) | Version |
Transmission Reference | TransmissionReference | |
Transmission Results | TransmissionResults | |
Results | Results | |
Total Records | TotalRecords | |
Records | Record | Records |
Address Line 1 | AddressLine1 | |
Suite Name | SuiteName | |
Suite Count | SuiteCount | |
City | City | |
State | State | |
Postal Code | PostalCode | |
AddressKey | AddressKey | |
Latitude | Latitude | |
Longitude | Longitude | |
Distance | Distance |
Response Elements
The following elements are the basic options for each request. These apply to the entire response, not the individual records.
Version
- This is a string value that is the current revision number of Reverse GeoCoder.
Protocol Syntax JSON "Version":"string"
XML <Version>string</Version>
Transmission Reference
- This is a string value that serves as a unique identifier for this set of records. It is returned as sent by the Request Array, allowing you to match the Response to the Request.
Protocol Syntax JSON "TransmissionReference":"string"
XML <TransmissionReference>string</TransmissionReference>
Transmission Results
- This is a string value that lists error codes from any errors caused by the most recent request as a whole.
- For a complete list of error codes, see Reverse GeoCoder Result Codes.
Protocol Syntax JSON "TransmissionResults":"string"
XML <TransmissionResults>string</TransmissionResults>
Results
- This is a string value with comma delimited status, error codes, and change codes for the record.
- For a complete list of error codes, see Reverse GeoCoder Result Codes.
Protocol Syntax JSON "Results":"string"
XML <Results>string</Results>
Total Records
- Displays the total number of records returned.
Protocol Syntax JSON "TotalRecords":"string"
XML <TotalRecords>string</TotalRecords>
Response Record Elements
JSON will only contain the Records element.
Protocol Definition JSON Each record will be contained within [{}] under the Records element. XML
Each of the following elements are returned for each record in the Response Array.
AddressLine1
- Returns the street address (street number and street name) that corresponds to the input geo coordinates.
Protocol Syntax JSON "AddressLine1":"string"
XML <AddressLine1>string</AddressLine1>
SuiteName
- Returns the suite name of the address returned. Values that could be returned are: Ste, Apt., etc.
Protocol Syntax JSON "SuiteName":"string"
XML <SuiteName>string</SuiteName>
SuiteCount
- Returns the number of suites in a particular building. Zero will be returned if the address has a no suites (a single delivery point).
Protocol Syntax JSON "SuiteCount":"string"
XML <SuiteCount>string</SuiteCount>
City
- Returns the city of the output address.
Protocol Syntax JSON "City":"string"
XML <City>string</City>
State
- Returns the State of the output address.
Protocol Syntax JSON "State":"string"
XML <State>string</State>
PostalCode
- Returns the Postal Code of the output address.
Protocol Syntax JSON "PostalCode":"string"
XML <PostalCode>string</PostalCode>
AddressKey
- Returns a unique identifier for an address. This key can be used with other current and future Melissa Data services.
Protocol Syntax JSON "AddressKey":"string"
XML <AddressKey>string</AddressKey>
Latitude
- Returns the latitude geographic coordinate of the output address.
Protocol Syntax JSON "Latitude":"string"
XML <Latitude>string</Latitude>
Longitude
- Returns the longitude geographic coordinate of the output address.
Protocol Syntax JSON "Longitude":"string"
XML <Longitude>string</Longitude>
Distance
- Returns the distance between the input coordinates and the output coordinates. A distance of zero indicates that an exact address match was returned for the input geographic coordinates.
Protocol Syntax JSON "Distance":"string"
XML <Distance>string</Distance>