Multiposter
Click here for a complete list of operations.
QueryLocations
from QueryLocations
Perform a location query. For a specific location specify LocationValue, or to search specify q (minimum 2 characters) along with a priority or prefix
HTTP POST with Content-Type: application/json
{ "Request": { "sCultureID": "", "sAPIKey": "string", "q": "string", "prefix": "string", "priority": "string", "LocationValue": "string" } }Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /json/Multiposter.asmx/QueryLocations HTTP/1.1 Host: api.logicmelon.com Content-Type: application/json; charset=utf-8 Content-Length: length { "Request": { "sCultureID": "string", "sAPIKey": "string", "q": "string", "prefix": "string", "priority": "string", "LocationValue": "string" } }
HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 Content-Length: length { "d": [ or { { "__type":"MPATSAPI.Models.CQueryLocation", "Display": "string", "LocationDescription": "string", "LocationID": int, "LocationIdentifier": "string", "LocationValue": "string", "Score": int, "Latitude": decimal, "Longitude": decimal }, { "__type":"MPATSAPI.Models.CQueryLocation", "Display": "string", "LocationDescription": "string", "LocationID": int, "LocationIdentifier": "string", "LocationValue": "string", "Score": int, "Latitude": decimal, "Longitude": decimal } ] }
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /json/Multiposter.asmx/QueryLocations HTTP/1.1 Host: api.logicmelon.com Content-Type: application/json; charset=utf-8 Content-Length: length { "Request": { "sCultureID": "string", "sAPIKey": "string", "q": "string", "prefix": "string", "priority": "string", "LocationValue": "string" } }
HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 Content-Length: length { "d": [ or { { "__type":"MPATSAPI.Models.CQueryLocation", "Display": "string", "LocationDescription": "string", "LocationID": int, "LocationIdentifier": "string", "LocationValue": "string", "Score": int, "Latitude": decimal, "Longitude": decimal }, { "__type":"MPATSAPI.Models.CQueryLocation", "Display": "string", "LocationDescription": "string", "LocationID": int, "LocationIdentifier": "string", "LocationValue": "string", "Score": int, "Latitude": decimal, "Longitude": decimal } ] }