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) –

__init__(center, radius)[source]
Parameters
  • center (Dict) –

  • radius (int) –

__repr__()[source]

Return string representation of this instance.

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) –

__init__(north, south, west, east)[source]
Parameters
  • north (float) –

  • south (float) –

  • west (float) –

  • east (float) –

__repr__()[source]

Return string representation of this instance.

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) –

__init__(outer)[source]
Parameters

outer (List) –

__repr__()[source]

Return string representation of this instance.

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) –

__init__(margin=10000)[source]
Parameters

margin (int) –

__repr__()[source]

Return string representation of this instance.

class here_location_services.config.matrix_routing_config.WorldRegion[source]

Bases: object

A class to define attributes of World Region for Matrix Routing API.

__init__()[source]
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.

Profiles

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 use PROFILE.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 use MATRIX_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 use AVOID_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) –

__init__(north, south, west, east)[source]
Parameters
  • north (float) –

  • south (float) –

  • west (float) –

  • east (float) –

__repr__()[source]

Return string representation of this instance.