Reverse GeoCoder:Request: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 40: | Line 40: | ||
The following elements set the basic options for each request. These apply to the entire request, not the individual records. | The following elements set the basic options for each request. These apply to the entire request, not the individual records. | ||
<h3 | <h3 class="h3grey">Transmission Reference</h3> | ||
:''Optional.'' | :''Optional.'' | ||
Line 56: | Line 56: | ||
<h3 | <h3 class="h3grey">License Key</h3> | ||
:''Required.'' | :''Required.'' | ||
Line 74: | Line 74: | ||
<h3 | <h3 class="h3grey">Latitude</h3> | ||
:''Required.'' | :''Required.'' | ||
Line 90: | Line 90: | ||
<h3 | <h3 class="h3grey">Longitude</h3> | ||
:''Required.'' | :''Required.'' | ||
Line 106: | Line 106: | ||
<h3 | <h3 class="h3grey">MaxDistance</h3> | ||
:''Optional.'' | :''Optional.'' | ||
Line 122: | Line 122: | ||
<h3 | <h3 class="h3grey">MaxRecords</h3> | ||
:''Optional.'' | :''Optional.'' | ||
Line 138: | Line 138: | ||
<h3 | <h3 class="h3grey">Format</h3> | ||
:''Optional.'' | :''Optional.'' | ||
Revision as of 19:15, 8 March 2019
Reverse GeoCoder Navigation | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
| ||||||||||
| ||||||||||
| ||||||||||
Sample Code |
A request consists of a protocol to make a call to the service, detailing desired elements. The minimum required elements in a request are your License Key and at least one set of geo-coordinates.
Reverse GeoCoder supports multiple protocols to access the service, including SOAP, JSON, REST, and XML.
URL
REST, XML, JSON, etc.
Use URL Standard http://reversegeo.melissadata.net/v3/WEB/ReverseGeoCode/DoLookup Secure https://reversegeo.melissadata.net/v3/WEB/ReverseGeoCode/DoLookup
JSONP
Use URL Standard http://reversegeo.melissadata.net/v3/jsonp/ReverseGeoCode/DoLookup Secure https://reversegeo.melissadata.net/v3/jsonp/ReverseGeoCode/DoLookup
Field Names
This is a list of the request field names and their protocol naming conventions.
Field Name | Level | REST | JSON |
---|---|---|---|
Transmission Reference | Request | t | TransmissionReference |
License Key | id | CustomerID | |
Latitude | lat | Latitude | |
Longitude | long | Longitude | |
MaxDistance | dist | MaxDistance | |
MaxRecords | recs | MaxRecords | |
Format | format |
Request Elements
The following elements set the basic options for each request. These apply to the entire request, not the individual records.
Transmission Reference
- Optional.
- This is a string value that serves as a unique identifier for this set of records. It is returned as sent.
Protocol Syntax JSON "TransmissionReference":"string"
REST ?t = string
SOAP/XML <TransmissionReference>string</TransmissionReference>
License Key
- Required.
- This is a string value containing the License Key issued to you for this product.
- If this element is absent, the Web Service will return an error. To receive a License Key, please contact your Melissa sales representative at 1-800-MELISSA.
Protocol Syntax JSON "CustomerID":"string"
REST &id = string
SOAP/XML <CustomerID>string</CustomerID>
Latitude
- Required.
- The latitude geographic coordinate in decimal format.
Protocol Syntax JSON "Latitude":"string"
REST &lat = string
SOAP/XML <Latitude>string</Latitude>
Longitude
- Required.
- The longitude geographic coordinate in decimal format.
Protocol Syntax JSON "Longitude":"string"
REST &long = string
SOAP/XML <Longitude>string</Longitude>
MaxDistance
- Optional.
- The requested maximum distance (in miles). The maximum possible distance is 10 miles. If no MaxDistance is specified, the default is 10 miles.
Protocol Syntax JSON "MaxDistance":"string"
REST &dist = string
SOAP/XML <MaxDistance>string</MaxDistance>
MaxRecords
- Optional.
- The requested number of records. The Maximum number of records the user can get is 100 records. This is also the default if no MaxRecords is specified.
Protocol Syntax JSON "MaxRecords":"string"
REST &recs = string
SOAP/XML <MaxRecords>string</MaxRecords>
Format
- Optional.
- The desired format of the response. Possible values for this option are "json" or "xml".
Protocol Syntax REST &format = string