Skip to content

How to use service_per_type? #139

@merschformann

Description

@merschformann

Ahoi!

I can see that service on vroom.Job was split into default_service and service_per_type. While addressing the breaking change, I first did not notice default_service at first. So, I tried getting service_per_type working, which appears to be connected to the type on the vroom.Vehicle. However, no such type appears to be exposed (though, it's documented in the API docs - admittedly not the Python API docs).

E.g., this fails:

import vroom

stop = vroom.Job(
    id=0,
    location=0,
    service_per_type={"truck": 10},
)

vehicle = vroom.Vehicle(
    id=0,
    profile="truck",
    type="truck",
)

However, I might just be missing something. I just wanted to flag it as potentially misleading. 😊

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions