[−][src]Trait vrp_core::models::problem::TransportCost
Provides the way to get routing information for specific locations and actor.
Required methods
fn duration(
&self,
profile: Profile,
from: Location,
to: Location,
departure: Timestamp
) -> Duration
&self,
profile: Profile,
from: Location,
to: Location,
departure: Timestamp
) -> Duration
Returns transport time between two locations.
fn distance(
&self,
profile: Profile,
from: Location,
to: Location,
departure: Timestamp
) -> Distance
&self,
profile: Profile,
from: Location,
to: Location,
departure: Timestamp
) -> Distance
Returns transport distance between two locations.
Provided methods
fn cost(
&self,
actor: &Actor,
from: Location,
to: Location,
departure: Timestamp
) -> Cost
&self,
actor: &Actor,
from: Location,
to: Location,
departure: Timestamp
) -> Cost
Returns transport cost between two locations.