Powered by Zoomin Software. For more details please contactZoomin

HERE Maps API for JavaScript - API Reference

Product category
Technology
Doc type
Version
Product lifecycle
This publication

HERE Maps API for JavaScript - API Reference: Namespace: service

Table of Contents

Namespace: service

H.service

This namespace contains classes and interfaces related to the HERE REST APIs.

In particular, it contains implementations of service stubs and helper functionality to integrate the HERE Maps for JavaScript API with the following backend services:

Classes

GeocodingService
GeofencingService
MapTileService
PlacesService
Platform
RoutingService
RoutingService8
SearchService
Service
Url
WaypointsSequenceService

Namespaces

extension
iml
metaInfo
omv
publicTransit
rasterTile
traffic
trafficVectorTile

Type Definitions

H.service.JsonpRequestHandle Object

This type represents a handle object.

Properties:
Name Type Description
id number

The internal ID of the request

cancel function

A callback function to be invoked to cancel the request

H.service.Options Object

This type encapsulates configuration (initialization) options for an instance of a service.

Properties:

H.service.ServiceParameters Object.<string, *>

This type encapsulates URL parameters to be sent to a HERE platform service.

When calling HERE REST APIs, additional URL parameters can be sent by providing an object parameter which contains URL parameters in key-value format, where keys are URL parameter names and the values are the parameter values.

Note: The object assumes that values are in string format.

Example
serviceParameters = {
  paramA: 'valueA',
  paramB: 'valueB'
}

H.service.ServiceResult Object

This type encapsulates a response object provider by a HERE platform service. The structure of a service response object is specific to each service.

H.service.TileProviderOptions Object

This type defines options which are used to initialize a tile provider.

Properties:
Name Type Argument Description
crossOrigin string <optional>
<nullable>

The value to use for the crossOrigin attribute of the tile images, if omitted the attribute is set to "anonymous". For more details see MDN web docs.

headers Object <optional>

A map of HTTP headers to be sent with each request made by the provider.

Was this article helpful?
TitleResults for “How to create a CRG?”Also Available inAlert