MDSRouteServiceSoap


Click here for a complete list of operations.

CalculateRoadDistances

Efficiently calculates the set of ROAD DISTANCES between an origin point and a set of destination points. Enhanced access is required

Test

The test form is only available for requests from the local machine.

SOAP 1.1

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

POST /mdsservicesr2/MDSrouteServiceSoap.asmx HTTP/1.1
Host: apps.nowwhere.com.au
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://mapds.com.au/MDSServices/MDSRouteServiceSoap/CalculateRoadDistances"

<?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:Header>
    <AuthHeader xmlns="http://mapds.com.au/MDSServices/MDSRouteServiceSoap">
      <Username>string</Username>
      <Password>string</Password>
      <CallerID>string</CallerID>
    </AuthHeader>
  </soap:Header>
  <soap:Body>
    <CalculateRoadDistances xmlns="http://mapds.com.au/MDSServices/MDSRouteServiceSoap">
      <FromPointLatlong>
        <Latitude>double</Latitude>
        <Longitude>double</Longitude>
      </FromPointLatlong>
      <ToPointSet>
        <LatLong>
          <Latitude>double</Latitude>
          <Longitude>double</Longitude>
        </LatLong>
        <LatLong>
          <Latitude>double</Latitude>
          <Longitude>double</Longitude>
        </LatLong>
      </ToPointSet>
      <DataSourceName>string</DataSourceName>
      <Preference>
        <buildPreference>Quickest or Shortest or Simplest</buildPreference>
        <avoidPreference>NoAvoid or PBSUNCLASSIFIED or Ferries or Tollways or Tunnels or UnsealedRoads or PBS1A or PBS2A or PBS3A or PBS4A</avoidPreference>
        <buildDetailLevel>mainRoads or streets or tracks</buildDetailLevel>
        <outputDetail>AllPermitted or DistanceTimeOnly</outputDetail>
        <retentionPeriod>Session or Permanent</retentionPeriod>
        <retentionName>string</retentionName>
        <BreakDown>Single or Multiple</BreakDown>
      </Preference>
      <distLimiter>double</distLimiter>
    </CalculateRoadDistances>
  </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>
    <CalculateRoadDistancesResponse xmlns="http://mapds.com.au/MDSServices/MDSRouteServiceSoap">
      <CalculateRoadDistancesResult>
        <double>double</double>
        <double>double</double>
      </CalculateRoadDistancesResult>
    </CalculateRoadDistancesResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

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

POST /mdsservicesr2/MDSrouteServiceSoap.asmx HTTP/1.1
Host: apps.nowwhere.com.au
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Header>
    <AuthHeader xmlns="http://mapds.com.au/MDSServices/MDSRouteServiceSoap">
      <Username>string</Username>
      <Password>string</Password>
      <CallerID>string</CallerID>
    </AuthHeader>
  </soap12:Header>
  <soap12:Body>
    <CalculateRoadDistances xmlns="http://mapds.com.au/MDSServices/MDSRouteServiceSoap">
      <FromPointLatlong>
        <Latitude>double</Latitude>
        <Longitude>double</Longitude>
      </FromPointLatlong>
      <ToPointSet>
        <LatLong>
          <Latitude>double</Latitude>
          <Longitude>double</Longitude>
        </LatLong>
        <LatLong>
          <Latitude>double</Latitude>
          <Longitude>double</Longitude>
        </LatLong>
      </ToPointSet>
      <DataSourceName>string</DataSourceName>
      <Preference>
        <buildPreference>Quickest or Shortest or Simplest</buildPreference>
        <avoidPreference>NoAvoid or PBSUNCLASSIFIED or Ferries or Tollways or Tunnels or UnsealedRoads or PBS1A or PBS2A or PBS3A or PBS4A</avoidPreference>
        <buildDetailLevel>mainRoads or streets or tracks</buildDetailLevel>
        <outputDetail>AllPermitted or DistanceTimeOnly</outputDetail>
        <retentionPeriod>Session or Permanent</retentionPeriod>
        <retentionName>string</retentionName>
        <BreakDown>Single or Multiple</BreakDown>
      </Preference>
      <distLimiter>double</distLimiter>
    </CalculateRoadDistances>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <CalculateRoadDistancesResponse xmlns="http://mapds.com.au/MDSServices/MDSRouteServiceSoap">
      <CalculateRoadDistancesResult>
        <double>double</double>
        <double>double</double>
      </CalculateRoadDistancesResult>
    </CalculateRoadDistancesResponse>
  </soap12:Body>
</soap12:Envelope>