How to use the @here/olp-sdk-dataservice-read.RequestFactory.create function in @here/olp-sdk-dataservice-read

To help you get started, we’ve selected a few @here/olp-sdk-dataservice-read 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 getRequestBuilder(
        builderType: ApiName,
        abortSignal?: AbortSignal
    ): Promise {
        return RequestFactory.create(
            builderType,
            this.apiVersion,
            this.settings,
            HRN.fromString(this.hrn),
            abortSignal
        ).catch(err =>
            Promise.reject(
                `Error retrieving from cache builder for resource "${this.hrn}" and api: "${builderType}.\n${err}"`
            )
        );
    }
github heremaps / here-olp-sdk-typescript / @here / olp-sdk-dataservice-read / lib / client / VolatileLayerClient.ts View on Github external
private async getRequestBuilder(
        builderType: ApiName,
        abortSignal?: AbortSignal
    ): Promise {
        return RequestFactory.create(
            builderType,
            this.apiVersion,
            this.settings,
            HRN.fromString(this.hrn),
            abortSignal
        ).catch(err =>
            Promise.reject(
                `Error retrieving from cache builder for resource "${this.hrn}" and api: "${builderType}.\n${err}"`
            )
        );
    }

@here/olp-sdk-dataservice-read

Wrapper around a subset of the HERE Open Location Platform Data REST API related to reading data from OLP catalogs

Apache-2.0
Latest version published 1 month ago

Package Health Score

76 / 100
Full package analysis

Similar packages