Service Agreement
Privacy Statement
GeoPlaces Web Service
NOTE: This service requires a subscription.
You can register online using Subscriptions
interface.
There're several types of subscriptions available including a free subscription
so you can continue using the web service without paying. When you subscribe
you will be issued a subscriber ID that uniquely identify you. You must submit
that ID with every request by setting AuthenticationHeader SOAP header.
Consult WSDL for more information.
Help and samples
Contact info
Click here for a complete list of operations.
GetDistanceBetweenPlaces
Returns a distance in miles between two geo places. Parameters: place1 - place name (65 char max), state1 - 2 letter state code (not required for zip codes), place2 - place name (65 char max), state2 - 2 letter state code (not required for zip codes).
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.
SOAP 1.1
(show / hide)
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /services/PlaceLookup.asmx HTTP/1.1
Host: www.codebump.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://skats.net/services/GetDistanceBetweenPlaces"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://skats.net/services/" xmlns:types="http://skats.net/services/encodedTypes" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<tns:AuthenticationHeader>
<SessionID xsi:type="xsd:string">string</SessionID>
</tns:AuthenticationHeader>
</soap:Header>
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<tns:GetDistanceBetweenPlaces>
<place1 xsi:type="xsd:string">string</place1>
<state1 xsi:type="xsd:string">string</state1>
<place2 xsi:type="xsd:string">string</place2>
<state2 xsi:type="xsd:string">string</state2>
</tns:GetDistanceBetweenPlaces>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://skats.net/services/" xmlns:types="http://skats.net/services/encodedTypes" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<tns:GetDistanceBetweenPlacesResponse>
<GetDistanceBetweenPlacesResult xsi:type="xsd:float">float</GetDistanceBetweenPlacesResult>
</tns:GetDistanceBetweenPlacesResponse>
</soap:Body>
</soap:Envelope>
HTTP GET
(show / hide)
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /services/PlaceLookup.asmx/GetDistanceBetweenPlaces?place1=string&state1=string&place2=string&state2=string HTTP/1.1
Host: www.codebump.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<float xmlns="http://skats.net/services/literalTypes">float</float>
HTTP POST
(show / hide)
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /services/PlaceLookup.asmx/GetDistanceBetweenPlaces HTTP/1.1
Host: www.codebump.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
place1=string&state1=string&place2=string&state2=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<float xmlns="http://skats.net/services/literalTypes">float</float>