Returns a centroid point of the zip code in both radians and degrees. Parameters: zip - 5 digit zip code or Canadian postal code (M3H, M3H 6A7).
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /geosvc_api/ZipCodeLookup.asmx HTTP/1.1
Host: api.geosvc.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://skats.net/services/GetZipCodeCoordinates"
<?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:GetZipCodeCoordinates>
<zip xsi:type="xsd:string">string</zip>
</tns:GetZipCodeCoordinates>
</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:GetZipCodeCoordinatesResponse>
<GetZipCodeCoordinatesResult href="#id1" />
</tns:GetZipCodeCoordinatesResponse>
<tns:ZipCodeCoordinates id="id1" xsi:type="tns:ZipCodeCoordinates">
<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:ZipCodeCoordinates>
</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/ZipCodeLookup.asmx/GetZipCodeCoordinates?zip=string 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"?>
<ZipCodeCoordinates xmlns="http://skats.net/services/literalTypes">
<LatDegrees>float</LatDegrees>
<LonDegrees>float</LonDegrees>
<LatRadians>float</LatRadians>
<LonRadians>float</LonRadians>
</ZipCodeCoordinates>
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /geosvc_api/ZipCodeLookup.asmx/GetZipCodeCoordinates HTTP/1.1
Host: api.geosvc.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
zip=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<ZipCodeCoordinates xmlns="http://skats.net/services/literalTypes">
<LatDegrees>float</LatDegrees>
<LonDegrees>float</LonDegrees>
<LatRadians>float</LatRadians>
<LonRadians>float</LonRadians>
</ZipCodeCoordinates>