Angular service

service source

Description

Service managing trip planning functions - loading, adding, storing, removing waypoints and calculating route

Methods

addWaypoint (lon, lat)

Add waypoint to waypoint list and recalculate route

Parameters

NameTypeDescription
lon Number

Longitude number (part of Ol.coordinate Array)

lat Number

Latitude number (part of Ol.coordinate Array)

calculateRoutes

Calculate routes between stored waypoints

digestScopes

Refresh scopes phase

loadWaypoints

Load selected trip data from plan4all server and calculate routes

removeWaypoint (wp)

Remove selected waypoint from trip

Parameters

NameTypeDescription
wp Object

Waypoint object to remove

storeWaypoints

Store current waypoints on remote Plan4All server if possible