POST api/Transport/DistancePointsGet

Request Information

URI Parameters

None.

Body Parameters

TransportDistancePointsGetRequest
NameDescriptionTypeAdditional information
source

MapPoint

None.

destination

MapPoint

None.

Request Formats

application/json, text/json

Sample:
{
  "source": {
    "latitude": 1.1,
    "longitude": 2.1
  },
  "destination": {
    "latitude": 1.1,
    "longitude": 2.1
  }
}

application/xml, text/xml

Sample:
<TransportDistancePointsGetRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NMP3000Api.Areas.Transport.Models">
  <Destination>
    <Latitude>1.1</Latitude>
    <Longitude>2.1</Longitude>
  </Destination>
  <Source>
    <Latitude>1.1</Latitude>
    <Longitude>2.1</Longitude>
  </Source>
</TransportDistancePointsGetRequest>

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 'TransportDistancePointsGetRequest'.

Response Information

Resource Description

TransportDistancePointsGetResponse
NameDescriptionTypeAdditional information
distance

decimal number

None.

mesasge

string

None.

isSuccess

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "distance": 1.1,
  "mesasge": "sample string 1",
  "isSuccess": true
}

application/xml, text/xml

Sample:
<TransportDistancePointsGetResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NMP3000Api.Areas.Transport.Models">
  <IsSuccess xmlns="http://schemas.datacontract.org/2004/07/NMP3000Api.Models">true</IsSuccess>
  <Mesasge xmlns="http://schemas.datacontract.org/2004/07/NMP3000Api.Models">sample string 1</Mesasge>
  <Distance>1.1</Distance>
</TransportDistancePointsGetResponse>