Difference between revisions of "Reverse GeoCoder:Example Request"

From Melissa Data Wiki
Jump to navigation Jump to search
(Created page with "← Reverse GeoCoder Web Service Reference {| class="mw-collapsible" cellspacing="2" style="background-color:#f9f9f9; border:1px...")
 
Line 20: Line 20:
|-
|-
|[[Reverse GeoCoder Web Service:Request Elements|Request Elements]]
|[[Reverse GeoCoder Web Service:Request Elements|Request Elements]]
|-
|[[Reverse GeoCoder Web Service:Request Record Elements|Request Record Elements]]
|-
|-
|[[Reverse GeoCoder Web Service:Example Request|Example Request]]
|[[Reverse GeoCoder Web Service:Example Request|Example Request]]

Revision as of 23:27, 2 October 2014

← Reverse GeoCoder Web Service Reference

Reverse GeoCoder Web Service Navigation
Introduction
Licensing
Request
Request Elements
Example Request
Response
Response Elements
Response Record Elements
Example Response
Result Codes
Result Code Use
Returned 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}


SOAP Request

Dim Request As New ReverseGeo.Request
Dim Response As New ReverseGeo.Response
Request.CustomerId = string
Request.TransmissionReference = string
Request.Latitude = string
Request.Longitude = string
Request.MaxDistance = string
Request.MaxRecords = string
ReverseGeoClient = New ReverseGeo.Service
Response = ReverseGeoClient.doLookUp(Request)
ReverseGeoClient.Dispose()


XML Request

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