POST Offsite/GetDistanceInMiles

Request Information

URI Parameters

None.

Body Parameters

AddressRelation
NameDescriptionTypeAdditional information
Start

AddressWithLongAndLat

None.

End

AddressWithLongAndLat

None.

OrderId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Start": {
    "Address1": "sample string 1",
    "Address2": "sample string 2",
    "City": "sample string 3",
    "State": "sample string 4",
    "Zip": "sample string 5",
    "Longitude": "sample string 6",
    "Latitude": "sample string 7"
  },
  "End": {
    "Address1": "sample string 1",
    "Address2": "sample string 2",
    "City": "sample string 3",
    "State": "sample string 4",
    "Zip": "sample string 5",
    "Longitude": "sample string 6",
    "Latitude": "sample string 7"
  },
  "OrderId": 1
}

application/xml, text/xml

Sample:
<AddressRelation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Avertest.Mobile.API.Models.Offsite">
  <End xmlns:d2p1="http://schemas.datacontract.org/2004/07/Avertest.Aversys.DataLayer.Helper">
    <d2p1:Address1>sample string 1</d2p1:Address1>
    <d2p1:Address2>sample string 2</d2p1:Address2>
    <d2p1:City>sample string 3</d2p1:City>
    <d2p1:Latitude>sample string 7</d2p1:Latitude>
    <d2p1:Longitude>sample string 6</d2p1:Longitude>
    <d2p1:State>sample string 4</d2p1:State>
    <d2p1:Zip>sample string 5</d2p1:Zip>
  </End>
  <OrderId>1</OrderId>
  <Start xmlns:d2p1="http://schemas.datacontract.org/2004/07/Avertest.Aversys.DataLayer.Helper">
    <d2p1:Address1>sample string 1</d2p1:Address1>
    <d2p1:Address2>sample string 2</d2p1:Address2>
    <d2p1:City>sample string 3</d2p1:City>
    <d2p1:Latitude>sample string 7</d2p1:Latitude>
    <d2p1:Longitude>sample string 6</d2p1:Longitude>
    <d2p1:State>sample string 4</d2p1:State>
    <d2p1:Zip>sample string 5</d2p1:Zip>
  </Start>
</AddressRelation>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AddressRelation'.

Response Information

Resource Description

decimal number

Response Formats

application/json, text/json

Sample:
1.1

application/xml, text/xml

Sample:
<double xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1.1</double>