Class: LogisticsRouting

cercalia.service.LogisticsRouting

new cercalia.service.LogisticsRouting(options)

Routing Logistics Service constructor

Name Type Description
options
Name Type Description
destination cercalia.LonLat | cercaliax.service.RoutingStep

Destination coordinates.

lang string

Report language (only if report=true).

mindist boolean | undefined optional

Minimum substage distance, in meters (default value 1000). The larger this distance , the smaller the number of substages.

origin cercalia.LonLat | cercaliax.service.RoutingStep

Origin coordinates.

reorder boolean | undefined optional

Specify if you want to reorder or not the route stops, to get the faster/shorter route. Maximum 10 stop points.

report boolean | undefined optional

Get the textual route report (if not, gets a faster response). Default 0.

steps Array.<cercalia.LonLat> | Array.<cercaliax.service.RoutingStep> | undefined optional

Array with stop points coordinates (optional).

tolerance number | undefined optional

Route geometry generalization, in meters (if =0, returns the original geometry). Default value, 5 (meters).

toll boolean | undefined optional

Specify if you need to get the toll roads cost for the route. Currently only avaliable for Spain, Portugal and Andorra.

weight string | undefined optional

Route type: time (faster), distance (shorter), money (toll free route). Default value: time.

vweight number | undefined optional

Total maximum weight.

vaxleweight number | undefined optional

Maximum axle weight.

vheight number | undefined optional

Maximum height.

vlength number | undefined optional

Maximum length.

vwidth number | undefined optional

Maximum width.

vmaxvel number | undefined optional

Maximum speed.

trstart number | undefined optional

Restriction by date.

Methods

Calculates the route specifying a callback function to be executed when obtains the response

Name Type Description
callbackFn function

Resets the values to null

Returns the object type.

Get the restriction time start.

Returns:
Restriction time start.

Get the vehicle axel weight.

Returns:
Vehicle axel weight.

Get the vehicle height.

Returns:
Vehicle height.

Get the vehicle length.

Returns:
Vehicle length.

Get the vehicle maximum speed.

Returns:
Vehicle maximum speed.

Get the vehicle weight.

Returns:
Vehicle weight.

Get the vehicle width.

Returns:
Vehicle width.

Set the restriction time start.

Name Type Description
trstart number

Restriction time start.

Set the vehicle axel weight.

Name Type Description
vaxleweight number

Vehicle axel weight.

Set the vehicle height.

Name Type Description
vheight number

Vehicle height.

Set the vehicle length.

Name Type Description
vlength number

Vehicle length.

Set the vehicle maximum speed.

Name Type Description
vmaxvel number

Vehicle maximum speed.

Set the vehicle weight.

Name Type Description
vweight number

Vehicle weight.

Set the vehicle width.

Name Type Description
vwidth number

Vehicle width.