Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 784 Bytes

create-platform-client-settings.md

File metadata and controls

23 lines (16 loc) · 784 Bytes

Create platform client settings

You need to create the OlpClientSettings object to publish data and get catalog and partition metadata, as well as layer data from the HERE platform.

To create the OlpClientSettings object:

  1. Authenticate to the HERE platform.

  2. Import the OlpClientSettings class from the olp-sdk-core module.

    import { OlpClientSettings } from "@here/olp-sdk-core";
  3. Create the olpClientSettings instance using the environment in which you work and the getToken method.

    const olpClientSettings = new OlpClientSettings({
      environment:
        "here | here-dev | here-cn | here-cn-dev | http://YourLocalEnvironment",
      getToken: () => userAuth.getToken()
    });