How to use the @here/olp-sdk-dataservice-api.QueryApi.quadTreeIndex function in @here/olp-sdk-dataservice-api

To help you get started, we’ve selected a few @here/olp-sdk-dataservice-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github heremaps / here-olp-sdk-typescript / @here / olp-sdk-dataservice-read / lib / client / VersionedLayerClient.ts View on Github external
private async downloadIndex(indexRootKey: QuadKey): Promise {
        let dsIndex: QueryApi.Index;
        const queryRequestBuilder = await this.getRequestBuilder("query");
        const version = await this.getLatestVersion();

        dsIndex = await QueryApi.quadTreeIndex(queryRequestBuilder, {
            version,
            layerId: this.layerId,
            quadKey: utils.mortonCodeFromQuadKey(indexRootKey).toString(),
            depth: this.indexDepth
        });

        return this.parseIndex(indexRootKey, dsIndex);
    }