POST api/VietMap/TravelSalesmanProblem
Request Information
URI Parameters
None.
Body Parameters
TravelSalesmanProblemRequestName | Description | Type | Additional information |
---|---|---|---|
points | Collection of CenterPoint |
None. |
|
TransportType | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "points": [ { "lat": 1.1, "lon": 2.1 }, { "lat": 1.1, "lon": 2.1 } ], "TransportType": 1 }
application/xml, text/xml
Sample:
<TravelSalesmanProblemRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EMS.DingDong.API.Models.Vietmap"> <TransportType>1</TransportType> <points> <CenterPoint> <lat>1.1</lat> <lon>2.1</lon> </CenterPoint> <CenterPoint> <lat>1.1</lat> <lon>2.1</lon> </CenterPoint> </points> </TravelSalesmanProblemRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseObjectName | Description | Type | Additional information |
---|---|---|---|
Code | string |
None. |
|
Message | string |
None. |
|
Time | string |
None. |
|
Value | Object |
None. |
|
Data | string |
None. |
|
Signature | string |
None. |
|
ListValue | Collection of Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "Code": "sample string 1", "Message": "sample string 2", "Time": "sample string 3", "Value": {}, "Data": "sample string 5", "Signature": "sample string 6", "ListValue": [ {}, {} ] }
application/xml, text/xml
Sample:
<ResponseObject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EMS.DingDong.API.Utility"> <Code>sample string 1</Code> <Data>sample string 5</Data> <ListValue xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:anyType /> <d2p1:anyType /> </ListValue> <Message>sample string 2</Message> <Signature>sample string 6</Signature> <Time>sample string 3</Time> <Value /> </ResponseObject>