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 idnumber The internal ID of the request
cancelfunction A callback function to be invoked to cancel the request
-
This type encapsulates configuration (initialization) options for an instance of a service.
Properties:
Name Type Argument Description baseUrlH.service.Url <optional>
The base URL of the service. If supplied, it overrides all defaults (either coming from platform or service internals) including authentication params.
subDomainstring <optional>
The subdomain of the service relative to the base URL.
pathstring <optional>
The path of the service.
headersObject <optional>
A map of HTTP headers to be sent with each request made by the service.
-
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 crossOriginstring <optional>
<nullable>
The value to use for the
crossOriginattribute of the tile images, if omitted the attribute is set to"anonymous". For more details see MDN web docs.headersObject <optional>
A map of HTTP headers to be sent with each request made by the provider.