GeoPlaces Web Service 
NOTE: This is auto-generated web service description page.
For more information see Subscribe
Documentation
Contact
The service requires a subscription. There're several plans available including a free subscription.
Click here for a complete list of operations.
GetAllStates
Returns an array of all US states.
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /geosvc_api/PlaceLookup.asmx HTTP/1.1 Host: api.geosvc.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://skats.net/services/GetAllStates" <?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:GetAllStates /> </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:GetAllStatesResponse> <GetAllStatesResult href="#id1" /> </tns:GetAllStatesResponse> <soapenc:Array id="id1" soapenc:arrayType="tns:GeoPlaceDetails[2]"> <Item href="#id2" /> <Item href="#id3" /> </soapenc:Array> <tns:GeoPlaceDetails id="id2" xsi:type="tns:GeoPlaceDetails"> <Name xsi:type="xsd:string">string</Name> <Type xsi:type="tns:GeoPlaceType">ZipCode or City or State or ThreeDigitZipCode or AreaCode</Type> <State xsi:type="xsd:string">string</State> <LatDegrees xsi:type="xsd:float">float</LatDegrees> <LonDegrees xsi:type="xsd:float">float</LonDegrees> <LatRadians xsi:type="xsd:float">float</LatRadians> <LonRadians xsi:type="xsd:float">float</LonRadians> </tns:GeoPlaceDetails> <tns:GeoPlaceDetails id="id3" xsi:type="tns:GeoPlaceDetails"> <Name xsi:type="xsd:string">string</Name> <Type xsi:type="tns:GeoPlaceType">ZipCode or City or State or ThreeDigitZipCode or AreaCode</Type> <State xsi:type="xsd:string">string</State> <LatDegrees xsi:type="xsd:float">float</LatDegrees> <LonDegrees xsi:type="xsd:float">float</LonDegrees> <LatRadians xsi:type="xsd:float">float</LatRadians> <LonRadians xsi:type="xsd:float">float</LonRadians> </tns:GeoPlaceDetails> </soap:Body> </soap:Envelope>
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /geosvc_api/PlaceLookup.asmx/GetAllStates? HTTP/1.1 Host: api.geosvc.com
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <ArrayOfGeoPlaceDetails xmlns="http://skats.net/services/literalTypes"> <GeoPlaceDetails> <Name>string</Name> <Type>ZipCode or City or State or ThreeDigitZipCode or AreaCode</Type> <State>string</State> <LatDegrees>float</LatDegrees> <LonDegrees>float</LonDegrees> <LatRadians>float</LatRadians> <LonRadians>float</LonRadians> </GeoPlaceDetails> <GeoPlaceDetails> <Name>string</Name> <Type>ZipCode or City or State or ThreeDigitZipCode or AreaCode</Type> <State>string</State> <LatDegrees>float</LatDegrees> <LonDegrees>float</LonDegrees> <LatRadians>float</LatRadians> <LonRadians>float</LonRadians> </GeoPlaceDetails> </ArrayOfGeoPlaceDetails>
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /geosvc_api/PlaceLookup.asmx/GetAllStates HTTP/1.1 Host: api.geosvc.com Content-Type: application/x-www-form-urlencoded Content-Length: length
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <ArrayOfGeoPlaceDetails xmlns="http://skats.net/services/literalTypes"> <GeoPlaceDetails> <Name>string</Name> <Type>ZipCode or City or State or ThreeDigitZipCode or AreaCode</Type> <State>string</State> <LatDegrees>float</LatDegrees> <LonDegrees>float</LonDegrees> <LatRadians>float</LatRadians> <LonRadians>float</LonRadians> </GeoPlaceDetails> <GeoPlaceDetails> <Name>string</Name> <Type>ZipCode or City or State or ThreeDigitZipCode or AreaCode</Type> <State>string</State> <LatDegrees>float</LatDegrees> <LonDegrees>float</LonDegrees> <LatRadians>float</LatRadians> <LonRadians>float</LonRadians> </GeoPlaceDetails> </ArrayOfGeoPlaceDetails>