Namespace: service
- Last UpdatedMay 21, 2025
- 2 minute read
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
Type Definitions
-
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
-
This type encapsulates configuration (initialization) options for an instance of a service.
Properties:
-
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' }
-
This type encapsulates a response object provider by a HERE platform service. The structure of a service response object is specific to each service.
-
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.