pub trait TransportCost {
fn duration_approx(
&self,
profile: &Profile,
from: Location,
to: Location
) -> Duration;
fn distance_approx(
&self,
profile: &Profile,
from: Location,
to: Location
) -> Distance;
fn duration(
&self,
route: &Route,
from: Location,
to: Location,
travel_time: TravelTime
) -> Duration;
fn distance(
&self,
route: &Route,
from: Location,
to: Location,
travel_time: TravelTime
) -> Distance;
fn cost(
&self,
route: &Route,
from: Location,
to: Location,
travel_time: TravelTime
) -> Cost { ... }
}Expand description
Provides the way to get routing information for specific locations and actor.
Required Methods
Returns time-independent travel duration between locations specific for given profile.
Returns time-independent travel distance between locations specific for given profile.
Returns time-dependent travel duration between locations specific for given actor.