LegKt

public final class LegKt


Summary

Public methods

static final @NonNull Leg
leg(@NonNull Duration duration, int distanceMeters)

Builds a new Leg.

Public methods

leg

public static final @NonNull Leg leg(@NonNull Duration duration, int distanceMeters)

Builds a new Leg.

Parameters
@NonNull Duration duration

the time it takes to finish this leg of the trip

int distanceMeters

the distance of this leg of the trip

Returns
@NonNull Leg

the constructed Leg