GetQuickMilesLatLon
Version
Version 4.2
Method Signature
Decimal GetQuickMilesLatLon(Credentials c, double OriginLatitude, double OriginLongitude, double DestinationLatitude, double DestinationLongitude)
The following is a sample SOAP request and response. The placeholders shown need to be replaced with actual values.
Example Code
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:com="http://schemas.datacontract.org/2004/07/com.promiles.PRIME.v4_2.Core">
<soapenv:Header/>
<soapenv:Body>
<GetQuickMilesLatLon>
<c>
<com:CompanyCode>YOUR_COMPANY_CODE</com:CompanyCode>
<com:Password>YOUR_PASSWORD</com:Password>
<com:Username>YOUR_USERNAME</com:Username>
</c>
<OriginLatitude>38.998816931657785</OriginLatitude>
<OriginLongitude>-84.62659419879142</OriginLongitude>
<DestinationLatitude>32.42638137722961</DestinationLatitude>
<DestinationLongitude>-90.13069130170356</DestinationLongitude>
</GetQuickMilesLatLon>
</soapenv:Body>
</soapenv:Envelope>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<GetQuickMilesLatLonResponse>
<GetQuickMilesLatLonResult>668.85</GetQuickMilesLatLonResult>
</GetQuickMilesLatLonResponse>
</s:Body>
</s:Envelope>