dependencies

package
v0.0.0-...-d2b98b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMapService

type IMapService interface {
	FetchTravelPlan(ctx context.Context, vehicleTypeID int64, pickUpLocation, dropOffLocation dto.Location, pickUpTime time.Time) (TravelPlan, error)
}

type MapService

type MapService struct{}

func NewMapService

func NewMapService() *MapService

func (*MapService) FetchTravelPlan

func (s *MapService) FetchTravelPlan(
	ctx context.Context,
	vehicleTypeID int64,
	pickUpLocation, dropOffLocation dto.Location,
	pickUpTime time.Time,
) (TravelPlan, error)

type TravelPlan

type TravelPlan struct {
	DistanceInKM      float64
	DurationInSeconds float64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL