CreatePickupTrip

Container: CCPService
Namespace: System.Data.Objects

Summary

Creates a pickup trip.

Method

The HTTP method for this function import is POST

Parameters

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.
Parameters marked with a * are required

Return

Type: Entity type - TripSummary
Is collection: false

Example

Request URL: https://ccp.dispatchconnect.nl/CCPService/DataServiceCCP.svc/CreatePickupTrip
Example 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"
}