AirLay backend

RouteService extends Injectable
in package
implements AirlayServiceDi

Interfaces, Classes, Traits and Enums

AirlayServiceDi
Interface AirlayServiceDi

Table of Contents

HOURS_TO_SECONDS  = 3.6
$  : AirlayConfig
buildRoute()  : array<string|int, mixed>
buildRouteByWaypoints()  : array<string|int, mixed>
convertRoute()  : RouteEntity
convertRouteFromFrontend()  : array<string|int, mixed>
setLength()  : void
convertSteps()  : array<string|int, mixed>
parseInfo()  : array<string|int, mixed>
sendToOSRM()  : array<string|int, mixed>
sendToTripOSRM()  : array<string|int, mixed>

Constants

Properties

Methods

buildRoute()

public buildRoute(array<string|int, mixed> $coordinatesFrom, array<string|int, mixed> $coordinatesTo[, string $steps = 'true' ][, string $generateHints = 'false' ][, string $overview = 'full' ]) : array<string|int, mixed>
Parameters
$coordinatesFrom : array<string|int, mixed>
$coordinatesTo : array<string|int, mixed>
$steps : string = 'true'
$generateHints : string = 'false'
$overview : string = 'full'
Return values
array<string|int, mixed>

buildRouteByWaypoints()

public buildRouteByWaypoints(array<string|int, mixed> $waypoints[, string $source = 'first' ][, string $destination = 'last' ][, string $roundtrip = 'false' ]) : array<string|int, mixed>
Parameters
$waypoints : array<string|int, mixed>
$source : string = 'first'
$destination : string = 'last'
$roundtrip : string = 'false'
Return values
array<string|int, mixed>

convertRoute()

public convertRoute(array<string|int, mixed> $routeArray, array<string|int, mixed> $waypoints, array<string|int, mixed> $info) : RouteEntity
Parameters
$routeArray : array<string|int, mixed>
$waypoints : array<string|int, mixed>
$info : array<string|int, mixed>
Return values
RouteEntity

convertRouteFromFrontend()

public convertRouteFromFrontend(array<string|int, mixed> $routeArray) : array<string|int, mixed>
Parameters
$routeArray : array<string|int, mixed>
Return values
array<string|int, mixed>

convertSteps()

private convertSteps(array<string|int, mixed> $legs, int $maxSpeed) : array<string|int, mixed>
Parameters
$legs : array<string|int, mixed>
$maxSpeed : int
Return values
array<string|int, mixed>

parseInfo()

private parseInfo(array<string|int, mixed> $route, array<string|int, mixed> $info) : array<string|int, mixed>
Parameters
$route : array<string|int, mixed>
$info : array<string|int, mixed>
Return values
array<string|int, mixed>

sendToOSRM()

private sendToOSRM(string $coordinatesFromTo[, string $steps = 'true' ][, string $generateHints = 'false' ][, string $overview = 'full' ]) : array<string|int, mixed>
Parameters
$coordinatesFromTo : string
$steps : string = 'true'
$generateHints : string = 'false'
$overview : string = 'full'
Return values
array<string|int, mixed>

sendToTripOSRM()

private sendToTripOSRM(string $coordinatesFromTo[, string $source = 'first' ][, string $destination = 'last' ][, string $roundtrip = 'false' ]) : array<string|int, mixed>
Parameters
$coordinatesFromTo : string
$source : string = 'first'
$destination : string = 'last'
$roundtrip : string = 'false'
Return values
array<string|int, mixed>

Search results