Geocode
SOAP 1.1
Version
Version 1.1, Basic, Standard, Enterprise
Method Signature
GeocodeResponse Geocode(Credentials c, String Address, String City, String StateAbbreviation, String PostalCode)
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
Example Code
POST /Webservices/v1/PRIMEEnterpriseV1.asmx HTTP/1.1
Host: prime.promiles.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://promiles.com/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://promiles.com/">
<c>
<Username>string</Username>
<Password>string</Password>
<CompanyCode>string</CompanyCode>
</c>
<Address>string</Address>
<City>string</City>
<StateAbbreviation>string</StateAbbreviation>
<PostalCode>string</PostalCode>
</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://promiles.com/">
<GeocodeResult>
<GeocodedLocation>
<ProMilesLocationID>int</ProMilesLocationID>
<Address>string</Address>
<City>string</City>
<State>string</State>
<PostalCode>string</PostalCode>
<Latitude>decimal</Latitude>
<Longitude>decimal</Longitude>
<LocationText>string</LocationText>
<Label>string</Label>
<Type>PROMILES or TRUCKSTOPS or REST_AREAS or WEIGH_SCALES</Type>
<LocationProperties>
<LocationProperty xsi:nil="true" />
<LocationProperty xsi:nil="true" />
</LocationProperties>
</GeocodedLocation>
<IsGeocoded>boolean</IsGeocoded>
<ResponseStatus>SUCCESS or USER_ERROR or BAD_TRIP_LOCATION or AUTHENTICATION_FAIL or SERVER_ERROR or ENGINE_ERROR or UNKNOWN or UNPROCESSED</ResponseStatus>
<ReponseMessage>string</ReponseMessage>
</GeocodeResult>
</GeocodeResponse>
</soap:Body>
</soap:Envelope>