How to use the @here/olp-sdk-dataservice-api.MetadataApi.getPartitions 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
async getPartitions(
        partitionsRequest: PartitionsRequest
    ): Promise {
        const metaRequestBilder = await this.getRequestBuilder("metadata");
        const version =
            partitionsRequest.getVersion() || (await this.getLatestVersion());
        return MetadataApi.getPartitions(metaRequestBilder, {
            version,
            layerId: this.layerId
        });
    }
github heremaps / here-olp-sdk-typescript / @here / olp-sdk-dataservice-read / lib / client / VolatileLayerClient.ts View on Github external
async getPartitions(
        partitionsRequest: PartitionsRequest
    ): Promise {
        const metaRequestBilder = await this.getRequestBuilder("metadata");
        return MetadataApi.getPartitions(metaRequestBilder, {
            layerId: this.layerId
        });
    }