here_location_services.matrix_routing_api module

This module contains classes for accessing HERE Matrix Routing API.

class here_location_services.matrix_routing_api.MatrixRoutingApi(api_key=None, auth=None, proxies=None, country='row')[source]

Bases: here_location_services.apis.Api

A class to access Matrix Routing API.

Parameters
__init__(api_key=None, auth=None, proxies=None, country='row')[source]
Parameters
__send_post_request(async_req, origins, region_definition, destinations=None, profile=None, departure_time=None, routing_mode=None, transport_mode=None, avoid_features=None, avoid_areas=None, truck=None, matrix_attributes=None)
Parameters
Return type

Dict

matrix_route(origins, region_definition, destinations=None, profile=None, departure_time=None, routing_mode=None, transport_mode=None, avoid_features=None, avoid_areas=None, truck=None, matrix_attributes=None)[source]

To Calculate routing matrix between multiple origins and destinations synchronously.

Parameters
Returns

requests.Response object.

Return type

Dict

matrix_route_async(origins, region_definition, destinations=None, profile=None, departure_time=None, routing_mode=None, transport_mode=None, avoid_features=None, avoid_areas=None, truck=None, matrix_attributes=None)[source]

To Calculate routing matrix between multiple origins and destinations asynchronously.

Parameters
Returns

requests.Response object.

Return type

Dict

get_async_matrix_route_status(status_url)[source]

Get the status of async matrix calculation for the provided status url.

Parameters

status_url (str) –

Return type

requests.models.Response

get_async_matrix_route_results(result_url)[source]

Get the results of async matrix calculation for the provided result url.

Parameters

result_url (str) –

Return type

requests.models.Response