Maps API for JavaScript Developer's Guide

H.service.EnterpriseRoutingService

Class Summary

Extends: H.service.AbstractRestService

The service was deprecated and succeeded by Routing REST API (see H.service.RoutingService).
Deprecated:
since 3.0.12.5

[ For full details, see the Class Details ]

Method Summary

Table 1. Methods
Methods

calculateRoute (calculateRouteParams, onResult, onError)

This method sends a "calculateroute" request to Enterprise Routing REST API and calls the onResult callback function once the service response was received - providing a H.service.ServiceResult object - or the onError callback if a communication error occurred.

getRoute (getRouteParams, onResult, onError)

This method sends a "getroute" request to Enterprise Routing REST API and calls the onResult callback function once the service response was received - providing a H.service.ServiceResult object - or the onError callback if a communication error occurred.

getLinkInfo (getLinkInfoParams, onResult, onError)

This method sends a "getlinkinfo" request to Enterprise Routing REST API and calls the onResult callback function once the service response was received - providing a H.service.ServiceResult object - or the onError callback if a communication error occured.

calculateIsoline (calculateIsolineParams, onResult, onError)

This method sends a "calculateisoline" request to Enterprise Routing REST API and calls the onResult callback function once the service response was received - providing a H.service.ServiceResult object - or the onError callback if a communication error occurred.

configure (appId, appCode, useHTTPS, useCIT, opt_baseUrl) : {H.service.IConfigurable}

This methods receive configuration parameters from the platform, that can be used by the object implementing the interface.

Class Description

The service was deprecated and succeeded by Routing REST API (see H.service.RoutingService).

This class encapsulates Enterprise Routing REST API as a service stub. An instance of this class can be retrieved by calling the factory method on a platform instance. H.service.Platform#getEnterpriseRoutingService.

Example

// assuming that platform was already instantiated
router = platform.getEnterpriseRoutingService();

var calculateIsoline = {
    'start': 'geo!52.5,13.4',
    'distance': '1000,2000',
    'mode': 'fastest;car;traffic:disabled'
  },
  onResult = function(result) {
    console.log(result.Response.isolines[0]);
  },
  onError = function(error) {
     console.log(error);
  };
router.calculateIsoline(calculateIsoline, onResult, onError);

Constructor Details

H.service.EnterpriseRoutingService(opt_options)

Parameters:
 
opt_options:
{H.service.EnterpriseRoutingService.Options=} [optional]
 

Method Details

calculateRoute (calculateRouteParams, onResult, onError)

This method sends a "calculateroute" request to Enterprise Routing REST API and calls the onResult callback function once the service response was received - providing a H.service.ServiceResult object - or the onError callback if a communication error occurred.

Please refer to the Routing REST API documentation for information on available parameters and the response object structure.

Parameters:
 
calculateRouteParams:
{H.service.ServiceParameters}
 
the service parameters to be sent with the routing request.
onResult:
{function(H.service.ServiceResult)}
 
this function will be called once the Enterprise Routing REST API provides a response to the request.
onError:
{function(Error)}
 
this function will be called if a communication error occurs during the JSON-P request

getRoute (getRouteParams, onResult, onError)

This method sends a "getroute" request to Enterprise Routing REST API and calls the onResult callback function once the service response was received - providing a H.service.ServiceResult object - or the onError callback if a communication error occurred.

Please refer to the Routing REST API documentation for information on available parameters and the response object structure.

Parameters:
 
getRouteParams:
{H.service.ServiceParameters}
 
the service parameters to be sent with the routing request.
onResult:
{function(H.service.ServiceResult)}
 
this function will be called once the Enterprise Routing REST API provides a response to the request.
onError:
{function(Error)}
 
this function will be called if a communication error occurs during the JSON-P request

getLinkInfo (getLinkInfoParams, onResult, onError)

This method sends a "getlinkinfo" request to Enterprise Routing REST API and calls the onResult callback function once the service response was received - providing a H.service.ServiceResult object - or the onError callback if a communication error occured.

Please refer to the Routing REST API documentation for information on available parameters and the response object structure.

Parameters:
 
getLinkInfoParams:
{H.service.ServiceParameters}
 
the service parameters to be sent with the routing request.
onResult:
{function(H.service.ServiceResult)}
 
this function will be called once the Enterprise Routing REST API provides a response to the request.
onError:
{function(Error)}
 
this function will be called if a communication error occurs during the JSON-P request

calculateIsoline (calculateIsolineParams, onResult, onError)

This method sends a "calculateisoline" request to Enterprise Routing REST API and calls the onResult callback function once the service response was received - providing a H.service.ServiceResult object - or the onError callback if a communication error occurred.

Please refer to the Routing REST API documentation for information on available parameters and the response object structure.

Parameters:
 
calculateIsolineParams:
{H.service.ServiceParameters}
 
the service parameters to be sent with the routing request.
onResult:
{function(H.service.ServiceResult)}
 
this function will be called once the Enterprise Routing REST API provides a response to the request.
onError:
{function(Error)}
 
this function will be called if a communication error occurs during the JSON-P request

configure (appId, appCode, useHTTPS, useCIT, opt_baseUrl) : {H.service.IConfigurable}

This methods receive configuration parameters from the platform, that can be used by the object implementing the interface.

Parameters:
 
appId:
{string}
 
The application ID to identify the client against the platform (mandatory to provide)
appCode:
{string}
 
The application code to identify the client against the platform (mandatory to provide)
useHTTPS:
{boolean}
 
Indicates whether secure communication should be used, default is false
useCIT:
{boolean}
 
Indicates whether the Customer Integration Testing should be used, default is false
opt_baseUrl:
{H.service.Url=} [optional]
 
The base URL of the platform, default is http://api.here.com. Note that if useHTTPS flag is passed it will override the URL scheme specified in the opt_baseUrl to use HTTPS.
Returns:
 
{H.service.IConfigurable}

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.