Maps SDK for Web
tt.services.additionalData
Retrieve polygons (in GeoJSON format) representing administrative borders using IDs related to search results entities.
Parameters need to be passed to the constructor. The method go performs the actual call.
Constructor
tt.services.additionalData([options])
Example
tt.services.fuzzySearch({
key: <Your API key>,
query: "Amsterdam"
})
.go()
.then(function(response) {
var geometryId = response.results[0].dataSources.geometry.id;
tt.services.additionalData({
key: <Your API key>,
geometries: [geometryId]
})
.go()
.then(function(adpResponse) {
console.log(adpResponse);
})
});
Parameters
Name | Description |
---|---|
options
Object default:None |
|
options.geometries
String[] default:None |
Geometry ids. |
options.geometriesZoom
Number default:None |
Geometries zoom. |
geometries
String[] default:None |
An array of geometries IDs. Sets or returns the value of the geometries option.
This option specifies an array of geometries IDs. IDs can be retrieved from the
Search API.
|
geometriesZoom
Number default:None |
Geometries zoom value. Sets or returns the value of the geometriesZoom option.
Available values are listed in the
Search API documentation.
|
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. |
Methods
go( ): Promise
Executes a predefined asynchronous task using the current configuration.
Returns