GeoBrokr


Click here for a complete list of operations.

GeoCode

Geocode a U.S. location.

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
szStreet:
szCity:
szState:
szZip:
szIP:
szUserID:
szPW:
MaxRecs:

SOAP

The following is a sample SOAP request and response. The placeholders shown need to be replaced with actual values.

POST /GeoBrokr.asmx HTTP/1.1
Host: www.zipmgr.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/GeoBrokr/Service1/GeoCode"

<?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:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GeoCode xmlns="http://tempuri.org/GeoBrokr/Service1">
      <szStreet>string</szStreet>
      <szCity>string</szCity>
      <szState>string</szState>
      <szZip>string</szZip>
      <szIP>string</szIP>
      <szUserID>string</szUserID>
      <szPW>string</szPW>
      <MaxRecs>int</MaxRecs>
    </GeoCode>
  </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:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GeoCodeResponse xmlns="http://tempuri.org/GeoBrokr/Service1">
      <GeoCodeResult>
        <GeoPoint>
          <Loc xmlns="http://geocode.ajmsoft.com/">string</Loc>
          <Latitude xmlns="http://geocode.ajmsoft.com/">float</Latitude>
          <Longitude xmlns="http://geocode.ajmsoft.com/">float</Longitude>
        </GeoPoint>
        <GeoPoint>
          <Loc xmlns="http://geocode.ajmsoft.com/">string</Loc>
          <Latitude xmlns="http://geocode.ajmsoft.com/">float</Latitude>
          <Longitude xmlns="http://geocode.ajmsoft.com/">float</Longitude>
        </GeoPoint>
      </GeoCodeResult>
    </GeoCodeResponse>
  </soap:Body>
</soap:Envelope>

HTTP GET

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

GET /GeoBrokr.asmx/GeoCode?szStreet=string&szCity=string&szState=string&szZip=string&szIP=string&szUserID=string&szPW=string&MaxRecs=string HTTP/1.1
Host: www.zipmgr.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<ArrayOfGeoPoint xmlns="http://tempuri.org/GeoBrokr/Service1">
  <GeoPoint>
    <Loc xmlns="http://geocode.ajmsoft.com/">string</Loc>
    <Latitude xmlns="http://geocode.ajmsoft.com/">float</Latitude>
    <Longitude xmlns="http://geocode.ajmsoft.com/">float</Longitude>
  </GeoPoint>
  <GeoPoint>
    <Loc xmlns="http://geocode.ajmsoft.com/">string</Loc>
    <Latitude xmlns="http://geocode.ajmsoft.com/">float</Latitude>
    <Longitude xmlns="http://geocode.ajmsoft.com/">float</Longitude>
  </GeoPoint>
</ArrayOfGeoPoint>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /GeoBrokr.asmx/GeoCode HTTP/1.1
Host: www.zipmgr.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

szStreet=string&szCity=string&szState=string&szZip=string&szIP=string&szUserID=string&szPW=string&MaxRecs=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<ArrayOfGeoPoint xmlns="http://tempuri.org/GeoBrokr/Service1">
  <GeoPoint>
    <Loc xmlns="http://geocode.ajmsoft.com/">string</Loc>
    <Latitude xmlns="http://geocode.ajmsoft.com/">float</Latitude>
    <Longitude xmlns="http://geocode.ajmsoft.com/">float</Longitude>
  </GeoPoint>
  <GeoPoint>
    <Loc xmlns="http://geocode.ajmsoft.com/">string</Loc>
    <Latitude xmlns="http://geocode.ajmsoft.com/">float</Latitude>
    <Longitude xmlns="http://geocode.ajmsoft.com/">float</Longitude>
  </GeoPoint>
</ArrayOfGeoPoint>