TOMP-WG / TOMP-API

Transport Operator to Mobility-as-a-Service Provider-API development for Mobility as a Service
Apache License 2.0
100 stars 41 forks source link

[FEATURE REQUEST] add memo field to booking and legs #459

Closed ruudrysk closed 1 year ago

ruudrysk commented 2 years ago

Is your feature request related to a problem? Please describe.

When a trip is booking there should be room for a general memo in the booking for administrative purposes and a general memo in the leg for executing the trip.

Urgency

Major, within taxi-transport it is often used to add extra information to the dispatch or driver.

Additional context

Describe the solution you'd like

Add extra fields for memo's to booking and leg

Describe alternatives you've considered

addressAdditionalInfo can be used to add some information for pickup/dropoff instructions. But many information is not relevant to the from/to, or some information should not be visible for the driver as it is information for dispatch. Therefore we are unable to use this fields.

Possible Implementation

edwinvandenbelt commented 2 years ago

isn't the 'bookings/{id}/notifications' usable?

ruudrysk commented 2 years ago

I looked at the notifications, but it feels like abusing this endpoint. It's more like a direct-message/notifications endpoint where the memo's are fixed information inside the booking or legs.

edwinvandenbelt commented 2 years ago

ok. We'll address it. Version 1.4 isn't closed yet

edwinvandenbelt commented 2 years ago

meanwhile, you could add 'memo' to the leg object and the extradata object in the booking. It should be in a bilateral agreement between MP and TO for now (1.3.0). We can add them in 1.4.0.