Classes
Type Definitions
-
RoutingOptions{Object}
-
Properties:
Name Type Argument Description destinationmodule:cercaliagl/LonLat~LonLat | module:cercaliagl/service/Routing~RoutingStep <optional>
Destination coordinates.
edgesboolean <optional>
Get edges IDs
infoedgesboolean <optional>
Adds specific information for each section to the route report.
An infoedges tag is added to each substage with specific information of each section.
The following attributes are reported for each section:
height: height from sea level in meters.
gradient: slope of the section
geometry: Stretch geometry
meters: Length of the section
maxkph: Legal maximum speed.langstring <optional>
Report language (only if report parameter is
true).mindistnumber <optional>
Minimum substage distance, in meters. The larger this distance , the smaller the number of substages. Default value
1000.originmodule:cercaliagl/LonLat~LonLat | module:cercaliagl/service/Routing~RoutingStep <optional>
Origin coordinates.
reorderboolean <optional>
Specify if you want to reorder or not the route stops, to get the faster/shorter route. Maximum 10 stop points.
reportboolean <optional>
Get the textual route report (if not, gets a faster response). Default
0.stepsArray.<module:cercaliagl/LonLat~LonLat> | Array.<module:cercaliagl/service/Routing~RoutingStep> <optional>
Array with stop points coordinates.
tolerancenumber <optional>
Route geometry generalization, in meters (if =0, returns the original geometry). Default value
5(meters).tollboolean <optional>
Specify if you need to get the toll roads cost for the route. Currently only avaliable for Spain, Portugal and Andorra. Default
false.weightstring <optional>
Route type:
time(faster),distance(shorter),money(toll free route). Default value:time.vweightnumber <optional>
Route logistics parameter. Total maximum vehicle weight.
vaxleweightnumber <optional>
Route logistics parameter. Maximum vehicle axle weight.
vheightnumber <optional>
Route logistics parameter. Maximum vehicle height.
vlengthnumber <optional>
Route logistics parameter. Maximum vehicle length.
vwidthnumber <optional>
Route logistics parameter. Maximum vehicle width.
vmaxvelnumber <optional>
Route logistics parameter. Maximum vehicle speed.
rimpboolean <optional>
Route logistics parameter. Dangerous goods
trinfodatestring <optional>
Route logistics parameter. Number days to consecutives to show restrictions. Info date format
YYYYMMDD.trinfodaysnumber <optional>
Route logistics parameter. Avoid route restrictions. In timestamp format.
trstartnumber <optional>
Route logistics parameter. Avoid route restrictions. In timestamp format.
originIsDepotboolean <optional>
This parameter only works if REORDER parameter is used. Values:
true(default): origin cannot be reordered (default).
false: origin is one more stop and can be reordered. Useful when you cannot choose the starting point of the vehicle.destinationIsDepotboolean <optional>
This parameter only works if REORDER parameter is used. Values:
true(default): Destination cannot be reordered (default).
false: Destination is one more stop and can be reordered. Useful when after attending some services you don’t have to return to a base.concurrencyboolean | undefined <optional>
Default
true. Multiple requests at same time. Iffalseit cancel previous pending requests.departuretimestring <optional>
Departure time in format ISO8601.
adrTunnelstring <optional>
ADR tunnel category.
intoll_xstring <optional>
Calculating route using roads with tolls
showBreaktimesboolean <optional>
Show break times.
twoDriversboolean <optional>
Calculate break times with two drivers.
poicatsArray.<string> <optional>
Array of POI categories.
alternativesboolean <optional>
Enable alternatives routing calculation.
isLogisticsboolean <optional>
Route calculation for logistics.
tollInfoTypemodule:cercaliagl/service/Routing~TollInfoType <optional>
Format of the toll information shown when calculating a route. Default value
basic.tollCurrencystring <optional>
Currency of the toll information displayed when calculating a route. Default value
undefined.netstring <optional>
Custom routing net. Default value
undefined. -
RoutingStep{Object}
-
Properties:
Name Type Argument Description streetIdstring <optional>
Street ID.
For example: Avinguda Diagonal (Barcelona) => ESP080193000092155streetNumnumber <optional>
House number
cityIdstring <optional>
City ID.
For example: Alcalá de Henares (Madrid) => ESP17240205552994municipalityIdstring <optional>
Municipality ID. P.e: Madrid => ESP280796
coordinatesmodule:cercaliagl/service/Routing~RoutingStepCoordinates <optional>
Step coordinates
-
RoutingStepCoordinates{Object}
-
Properties:
Name Type Argument Description lonLatmodule:cercaliagl/LonLat~LonLat keepDirectionboolean <optional>
-
TollInfoType{'basic'} {'detailed'} {'tollGuru'}
-