opentripmodel / otm5-change-requests

Tracking and reporting bugs and change requests of the OTM5 specification.
5 stars 1 forks source link

Question: Associated routes for trips and linked vehicles #70

Closed Jxlle closed 1 year ago

Jxlle commented 1 year ago

Hi,

I was looking through the documentation of the OTM v5 model and in the trip entity section of the guide, it is explained that route entities can be associated with a trip. However, I have difficulty finding where in the API this is possible, as there is no route property anymore for creating a trip entity. Am I missing something?

I have a similar question for vehicle entities. The guide explains that vehicles can be linked using the links property, but I cannot find this in the API spec.

EDIT: Is an AssociationCreatedEvent used for this instead?

Regards

bmeesters commented 1 year ago

Hello @Jxlle, you are right, this is currently not well explained. At the moment you can attach a route to a move action. Moves actions can thus be part of a trip entity. This means that it is currently possible to attach routes to the sub-parts of a trip, by having routes from each individual location to the next. However it is thus not possible to attach the complete route to a trip.

I'll be sure to update the documentation. If there is a need to also attach routes on the trip itself you would need to create a change request.

Jxlle commented 1 year ago

Thank you, it is clear now!

bmeesters commented 1 year ago

I removed some OTM4 pages since they are confusing, the current documentation should make it more clear