Sorry, you need to enable JavaScript to visit this website.

Additional data

Additional data

Allow your users to request for a set of extra entities, like city or country outline, previously
retrieved from the Online Search service. For more information, refer to the Additional Data service
documentation.

Sample use case: You want to apply colors to geographic-boundary areas such as countries, cities or districts.

Use the code below to try this in your app:

TTAdditionalDataSources *ads = response.results.firstObject.additionalDataSources;
TTGeometryDataSource *gds = ads.geometryDataSource;
TTAdditionalDataSearchQuery *query = [[TTAdditionalDataSearchQueryBuilder createWithDataSource:gds] build];
[[TTAdditionalDataSearch new] additionalDataSearchWithQuery:query completionHandler:^(TTAdditionalDataSearchResponse * _Nullable result, TTResponseError * _Nullable error) {
    PolygonAdditionalDataVisitior *visitior = [PolygonAdditionalDataVisitior new];
    [[[result results] firstObject] visitResult:visitior];
    [self drawingPolygonAdditionalDataVisitior:visitior];
}];

 

Sample views utilizing entities retrieved from the Additional Data service:



image

Boundaries for Amsterdam

image

Boundaries for Poland

You are here