Maps SDK for Web
tt.services.copyrightsCaption
The copyright caption service implementation provides a caption that is supposed to be displayed on a link that provides the full copyright notice. The response is not changed often.
This service is supposed to be called once when user has the map displayed for the first time.
Parameters need to be passed to the constructor. The method go performs the actual call.
The final response from the service is a string containing the caption i.e., © 1992 - 2019 TomTom.
This text has to be displayed as a copyrights prompt when using TomTom services. The caption should be clickable. A user should be presented with the full copyrights notice when the caption is clicked. For further documentation please check the caption class.
Constructor
tt.services.copyrightsCaption([options])
Example
tt.services.copyrightsCaption({
key: <Your API key>
})
.go()
.then(function(response) {
console.log(response);
});
Parameters
Name | Description |
---|---|
options
Object default:None |
|
options.key
String default:None |
A valid API Key for the requested service.
A valid API Key is required to make use of the given service. It can be issued in the Developer Portal. |
options.protocol
"http" | "https" default:"https" |
The protocol type to be used in the calls.
Represents the type of protocol used to perform a service call. |
Methods
go( ): Promise
Executes a predefined asynchronous task using the current configuration.
Returns