POST api/Distance

Request Information

URI Parameters

None.

Body Parameters

CalculateDistanceParm
NameDescriptionTypeAdditional information
auth

string

None.

OriginPostalCode

string

None.

OriginCountryID

string

None.

OriginAirportID

string

None.

DestinationPostalCode

string

None.

DestinationCountryID

string

None.

DestinationAirportID

string

None.

Request Formats

application/json, text/json

Sample:
{
  "auth": "sample string 1",
  "OriginPostalCode": "sample string 2",
  "OriginCountryID": "sample string 3",
  "OriginAirportID": "sample string 4",
  "DestinationPostalCode": "sample string 5",
  "DestinationCountryID": "sample string 6",
  "DestinationAirportID": "sample string 7"
}

application/xml, text/xml

Sample:
<CalculateDistanceParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParcelLogic.WebApi.Transportation.Models">
  <DestinationAirportID>sample string 7</DestinationAirportID>
  <DestinationCountryID>sample string 6</DestinationCountryID>
  <DestinationPostalCode>sample string 5</DestinationPostalCode>
  <OriginAirportID>sample string 4</OriginAirportID>
  <OriginCountryID>sample string 3</OriginCountryID>
  <OriginPostalCode>sample string 2</OriginPostalCode>
  <auth>sample string 1</auth>
</CalculateDistanceParm>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CalculateDistanceResp
NameDescriptionTypeAdditional information
IsSuccessful

boolean

None.

ErrorMessage

string

None.

Mile

integer

None.

Kilometer

integer

None.

MapURL

string

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccessful": true,
  "ErrorMessage": "sample string 2",
  "Mile": 3,
  "Kilometer": 4,
  "MapURL": "sample string 5"
}

application/xml, text/xml

Sample:
<CalculateDistanceResp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParcelLogic.WebApi.Transportation.Models">
  <ErrorMessage>sample string 2</ErrorMessage>
  <IsSuccessful>true</IsSuccessful>
  <Kilometer>4</Kilometer>
  <MapURL>sample string 5</MapURL>
  <Mile>3</Mile>
</CalculateDistanceResp>