MapsService

io.github.positionpal.location.application.tracking.MapsService
trait MapsService[F[_]]

A service to interact with maps and geolocation services.

Type parameters

F

the effect constructor type.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def distance(mode: RoutingMode)(origin: GPSLocation, destination: GPSLocation): F[Distance]

Estimates the distance between the origin and the destination using the given RoutingMode.

Estimates the distance between the origin and the destination using the given RoutingMode.

Value parameters

destination

the destination position of the route.

mode

the RoutingMode being used to move from the origin to the destination.

origin

the origin position of the route.

Attributes

Returns

the estimated distance.

def duration(mode: RoutingMode)(origin: GPSLocation, destination: GPSLocation): F[FiniteDuration]

Estimates the duration of a route between the origin and the destination using the given RoutingMode.

Estimates the duration of a route between the origin and the destination using the given RoutingMode.

Value parameters

destination

the destination position of the route.

mode

the RoutingMode being used to move from the origin to the destination.

origin

the origin position of the route.

Attributes

Returns

the estimated duration of the route.