opentripmodel / otm5-change-requests

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

Make fuel an enum instead of a free form string #51

Closed ptv-jcl closed 1 year ago

ptv-jcl commented 2 years ago

Type of request

Is your feature request related to a problem? Currently vehicle.fuel and fuelTypeConstraint.fuelTypes accept freeform strings. This can lead to inconsistencies when comparing the 2. For example bezine , petrol, gasoline and gas are all synonyms for the same fuel type.

Describe the solution you'd like I would like to see this become an enum. Values proposal:

Describe alternatives you've considered

Additional context

bmeesters commented 2 years ago

Yes, I am in favor of adding these kind of enums in multiple places, where other + an optional field where the other can be specified as fallback. I will discuss this tomorrow in the weekly SUTC meeting we have

bmeesters commented 1 year ago

This has been open for a while since it did not get much priority. TNO is currently working on various 'enums' in the field. Such as vehicle categories, consignment types, transport equipment type, etc. We are working on integrating that in OTM5 once finished. This will remain dormant until TNO is a bit further.

bmeesters commented 1 year ago

@woutvandenheuvel do we want to include this? It is easy to do so and probably already has value. Do you think the list is complete enough?

bmeesters commented 1 year ago

Suggestion: also add AdBlue for diesel

diesel and adBlue

bmeesters commented 1 year ago

The fuel is now an enum in OTM5.5