Reverse GeoCoder:Example Request

From Melissa Data Wiki
Revision as of 22:00, 7 March 2019 by Admin (talk | contribs)
Jump to navigation Jump to search

← Reverse GeoCoder

Reverse GeoCoder Navigation
Introduction
Licensing
Input/Output
doLookup
  ↳  Request
  ↳  Response
doLookupPostalCodes
  ↳  Request
  ↳  Response
doLookupFromList
  ↳  Request
  ↳  Response
Examples
REST XML
REST JSON
JSON
XML
Result Codes
Result Code Use
Reverse GeoCoder Result Codes
Sample Code



The following requests detail the possible elements and general format of the four possible protocols.

JSON Request

{
"RequestArray": {
  "CustomerId":"string",
  "Latitude":"string",
  "Longitude":"string",
  "MaxDistance":"string",
  "MaxRecords":"string",
  "TransmissionReference":"string"
  }
}


REST Request

There is no recordID element because a REST request can only submit one record per request:

http://ReverseGeo.melissadata.net/V3/WEB/ReverseGeoCode/doLookup
?id={CustomerId}
&lat={Latitude}
&long={Longitude}
&dist={MaxDistance}
&recs={MaxRecords}
&t={TransmissionReference}


XML Request

<RequestArray>
  <CustomerID>string</CustomerID>
  <Latitude>string</Latitude>
  <Longitude>string</Longitude>
  <MaxDistance>string</MaxDistance>
  <MaxRecords>string</MaxRecords>
  <TransmissionReference>string</TransmissionReference>
</RequestArray>