CreatePickupTrip
Container: CCPServiceNamespace: System.Data.Objects
Summary
Creates a pickup trip.Method
The HTTP method for this function import is POSTParameters
| Name | Type | Summary |
|---|---|---|
| longitude* | Edm.Double | The pickup longitude. |
| latitude* | Edm.Double | The pickup latitude. |
| dropOffAddress | AddressFragment | |
| dropOffLocationId | Edm.Int32 | |
| driverId | Edm.Int32 | The driver id. |
| vehicleTypeId | Edm.Int32 | Id of the vehicle type. |
| remark | Edm.String | The remark. |
Return
Type: Entity type - TripSummaryIs collection: false
Example
Request URL: https://ccp.dispatchconnect.nl/CCPService/DataServiceCCP.svc/CreatePickupTripExample body (sent with POST-request):
{
"longitude" : 5.079524,
"latitude" : 51.55404,
"dropOffAddress" : {
"Street" : "street",
"Number" : 1,
"Addition" : "addition",
"PostalCode" : "postalcode",
"State" : "state",
"Town" : "town",
"CountryId" : 1,
"Coordinates" : {
"Latitude" : 51.55404,
"Longitude" : 5.079524,
"FormatName" : "Pixel"
}
},
"dropOffLocationId" : 1,
"driverId" : 1,
"vehicleTypeId" : 1,
"remark" : "remark"
}