H.datalens. Service

Class Summary

Class Description

HERE Maps API and Data Lens JavaScript API can be used to visualize data from different network sources. For each network source type, a service class is required. The service also stores API connection credentials. The service instance must be configured with a H.service.Platform instance.

Method Details

This method makes an HTTP request to the Data Lens REST API. It makes any CRUD request (GET, PUT, POST, DELETE). This method can be used when implementing a custom provider or implementing data management. Otherwise existing providers are used to get data from the Data Lens REST API.

Parameters:

method : { string }

Any HTTP method (GET, PUT, POST, etc.)

endpoint : { string }

The REST API endpoint

params : { object } [optional]

URL parameters

body : { object } [optional]

The payload of the request

onResult : { function( object ) } [optional]

Callback called on a successful request with response data

onError : { function( Error ) } [optional]

Callback called on an unsuccessful request with the {@code Error} object