Maps SDK for Web
tt.services.copyrightsV2
The Copyrights service implementation provides a full copyrights notice in a HTML format that can be displayed to the user when the copyrights link is clicked.
Parameters need to be passed to the constructor.
Response
The response from the service is a HTML string with the copyrights information that have to be displayed. The whole respose is wrapped into a div element with the id copyrightMessage.
<div id="copyrightMessage"><h4>General Copyrights:</h4>
<p>© 1992 - 2021 TomTom. All rights reserved. This
material is proprietary and the subject of copyright protection, database
right protection and other intellectual property rights owned by TomTom
or its suppliers. The use of this material is subject to the terms of
a license agreement. Any unauthorized copying or disclosure of this
material will lead to criminal and civil liabilities.,</p>
<p>Data Source © 2021 TomTom,</p>
<p>based on https://www.tomtom.com/en_gb/thirdpartyproductterms/</p>
</div>
The response is also extended by getTrackingId()
method, which returns the Tracking-ID
associated with the request.
Constructor
tt.services.copyrightsV2([options])
Example
tt.services.copyrightsV2({
key: <Your API key>
}).then(function(response) {
console.log(response);
});
Parameters
Name | Description |
---|---|
options
Object default:None |
Options to be passed to the call |
additionalOptions.abortSignal
Object default:None |
Signal created with abortController.
Use AbortController to cancel requests in progress. Example
|
options.key
String default:None |
A valid API Key for the requested service.
Key is required to make use of the given service. It can be issued in the Developer Portal. |
options.trackingId
String default:uuid |
Sets value of "Tracking-ID" header.
Specifies an identifier for the request. If not set by the user, UUID is generated for each call.
|