add start and end of a trip api-ends