Trait vrp_core::models::problem::TransportCost [−][src]
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
[src]
&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
[src]
&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
[src]
&self,
actor: &Actor,
from: Location,
to: Location,
departure: Timestamp
) -> Cost
Returns transport cost between two locations.