Catalog metadata contains a list of configurations that describe the catalog and its layers. Configuration information about the catalog includes the following metadata:
- HERE Resource Name (HRN)
- Layer information
To get catalog metadata:
Get an access key ID and access key secret.
For instructions, see Authenticate to the HERE platform using client credentials.
For instructions, see Create platform client settings.
CatalogClientobject with the catalog HRN and platform client settings from step 2.
const catalogClient = new CatalogClient( HRN.fromString("CatalogHRN"), settings );
const request = new CatalogRequest().withBillingTag("MyBillingTag");
getCatalogmethod with the
const catalogMetadata = await catalogClient.getCatalog(request);
In browser and Node.js, to abort requests before they have completed, you can create the
AbortController object, and then add the
AbortController.signal property to your requests. For more information, see the
const abortController = new AbortController(); const catalogMetadata = await catalogClient.getCatalog( request, abortController.signal );