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.
GetPlacesWithin
Returns a list of geo places within a specified distance from a given place. Parameters: place - place name (65 char max), state - 2 letter state code (not required for zip codes), distance - distance in miles, placeTypeToFind - type of place to look for: ZipCode, City, ThreeDigitZipCode (unique 3-digit zip codes) or AreaCode.
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: codebump.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://skats.net/services/GetPlacesWithin"
<?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:GetPlacesWithin>
<place xsi:type="xsd:string">string</place>
<state xsi:type="xsd:string">string</state>
<distance xsi:type="xsd:float">float</distance>
<placeTypeToFind xsi:type="tns:GeoPlaceType">ZipCode or City or State or ThreeDigitZipCode or AreaCode</placeTypeToFind>
</tns:GetPlacesWithin>
</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:GetPlacesWithinResponse>
<GetPlacesWithinResult href="#id1" />
</tns:GetPlacesWithinResponse>
<soapenc:Array id="id1" soapenc:arrayType="tns:GeoPlaceDistance[2]">
<Item href="#id2" />
<Item href="#id3" />
</soapenc:Array>
<tns:GeoPlaceDistance id="id2" xsi:type="tns:GeoPlaceDistance">
<ToPlace xsi:type="xsd:string">string</ToPlace>
<ToState xsi:type="xsd:string">string</ToState>
<Distance xsi:type="xsd:float">float</Distance>
</tns:GeoPlaceDistance>
<tns:GeoPlaceDistance id="id3" xsi:type="tns:GeoPlaceDistance">
<ToPlace xsi:type="xsd:string">string</ToPlace>
<ToState xsi:type="xsd:string">string</ToState>
<Distance xsi:type="xsd:float">float</Distance>
</tns:GeoPlaceDistance>
</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/GetPlacesWithin?place=string&state=string&distance=string&placeTypeToFind=string HTTP/1.1
Host: codebump.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfGeoPlaceDistance xmlns="http://skats.net/services/literalTypes">
<GeoPlaceDistance>
<ToPlace>string</ToPlace>
<ToState>string</ToState>
<Distance>float</Distance>
</GeoPlaceDistance>
<GeoPlaceDistance>
<ToPlace>string</ToPlace>
<ToState>string</ToState>
<Distance>float</Distance>
</GeoPlaceDistance>
</ArrayOfGeoPlaceDistance>
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/GetPlacesWithin HTTP/1.1
Host: codebump.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
place=string&state=string&distance=string&placeTypeToFind=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfGeoPlaceDistance xmlns="http://skats.net/services/literalTypes">
<GeoPlaceDistance>
<ToPlace>string</ToPlace>
<ToState>string</ToState>
<Distance>float</Distance>
</GeoPlaceDistance>
<GeoPlaceDistance>
<ToPlace>string</ToPlace>
<ToState>string</ToState>
<Distance>float</Distance>
</GeoPlaceDistance>
</ArrayOfGeoPlaceDistance>