here_location_services.config.matrix_routing_config module
This module defines all the configs which will be required as inputs to matrix Routing API.
- class here_location_services.config.matrix_routing_config.CircleRegion(center, radius)[source]
Bases:
object
A class to define attributes of Circle Region for Matrix Routing API.
- Parameters
center (Dict) –
radius (int) –
- class here_location_services.config.matrix_routing_config.BoundingBoxRegion(north, south, west, east)[source]
Bases:
object
A class to define attributes of BoundingBox Region for Matrix Routing API.
- Parameters
north (float) –
south (float) –
west (float) –
east (float) –
- class here_location_services.config.matrix_routing_config.PolygonRegion(outer)[source]
Bases:
object
A class to define attributes of Polygon Region for Matrix Routing API.
- Parameters
outer (List) –
- class here_location_services.config.matrix_routing_config.AutoCircleRegion(margin=10000)[source]
Bases:
object
A class to define attributes of AutoCircle Region for Matrix Routing API.
- Parameters
margin (int) –
- class here_location_services.config.matrix_routing_config.WorldRegion[source]
Bases:
object
A class to define attributes of World Region for Matrix Routing API.
- class here_location_services.config.matrix_routing_config.Profile(**kwargs)[source]
Bases:
here_location_services.config.base_config.Bunch
A class to define constant values for
Profile
of Matrix Routing API.A profile ID enables the calculation of matrices with routes of arbitrary length. All profiles explicitly set departureTime to any and require that the obligatory request parameter REGION_DEFINITION_TYPE is set to world.
Profile ID
Description
carFast
Car with fast routing mode
carShort
Car with short routing mode
truckFast
Truck with fast routing mode
pedestrian
Pedestrian transport mode
bicycle
Bicycle transport mode
- here_location_services.config.matrix_routing_config.PROFILE = {'bicycle': 'bicycle', 'carFast': 'carFast', 'carShort': 'carShort', 'pedestrian': 'pedestrian', 'truckFast': 'truckFast'}
Use this config for profile of matrix Routing API. Example: for
carFast
profile usePROFILE.carFast
.
- class here_location_services.config.matrix_routing_config.MatrixAttributes(**kwargs)[source]
Bases:
here_location_services.config.base_config.Bunch
A class to define constant values for
matrixAttributes
of Matrix Routing API.MatrixAttributes:
travelTimes
,distances
.
- here_location_services.config.matrix_routing_config.MATRIX_ATTRIBUTES = {'distances': 'distances', 'travelTimes': 'travelTimes'}
Use this config for matrix_attributes of matrix Routing API. Example: for
travelTimes
matrix_attributes useMATRIX_ATTRIBUTES.travelTimes
.
- class here_location_services.config.matrix_routing_config.AvoidFeatures(**kwargs)[source]
Bases:
here_location_services.config.base_config.Bunch
A class to define constant values for features to avoid during matrix route calculation.
- here_location_services.config.matrix_routing_config.AVOID_FEATURES = {'controlledAccessHighway': 'controlledAccessHighway', 'dirtRoad': 'dirtRoad', 'ferry': 'ferry', 'tollRoad': 'tollRoad', 'tunnel': 'tunnel'}
Use this config for avoid_features of matrix Routing API. Example: for
tollRoad
avoid_features useAVOID_FEATURES.tollRoad
.
- class here_location_services.config.matrix_routing_config.AvoidBoundingBox(north, south, west, east)[source]
Bases:
object
A class to define attributes of Avoid areaBoundingBox for Matrix Routing API.
- Parameters
north (float) –
south (float) –
west (float) –
east (float) –