The HERE OLP SDK for TypeScript is a work-in-progress TypeScript client for HERE Open Location Platform.
Build & Test
Master | Node version | Status |
---|---|---|
Build/Test/Bundling/Typedoc | Node 12.13.0 lts |
The HERE OLP SDK for TypeScript provides support for core HERE Open Location Platform (OLP) use cases. The SDK is intended to save your time and effort on using OLP REST APIs and provides a set of stable APIs that simplify complex OLP operations and remove the burden of keeping up to date with the latest OLP REST API changes.
It's a modern, lightweight, and modular SDK with minimal dependencies for web developers.
This SDK lets you:
- Authenticate to HERE Open Location Platform (OLP) using client credentials.
- Read catalog and partitions metadata.
- Retrieve data from versioned and volatile layers of OLP catalogs.
This repository is a monorepo, containing the core components of OLP SDK, organized in the NPM workspace.
All components can be used stand-alone and are in the @here subdirectory.
All SDK modules are installable via NPM:
npm install @here/olp-sdk-authentication
npm install @here/olp-sdk-dataservice-read
npm install @here/olp-sdk-dataservice-api
Please see GettingStartedGuide.md for an introduction to the SDK.
- npm: 6.0.0+ (Installation instructions, see npm)
- Node.js 10+ (Installation instructions, see Node.js)
- Lerna.js 3+ (Installation instructions, see Lerna.js)
- TypeDoc 0.15+ (Installation instructions, TypeDoc)
Please note, alternatively to npm we also support Yarn
- Yarn 1+ (Installation instructions, see Yarn)
To bootstrap the packages in the current Lerna repo, and install all interdependent packages and link any cross-dependencies, run:
yarn install && yarn bootstrap
To build a TypeScript source code into a JavaScript code, run:
npm run build
To test out built results, run:
npm run test
To run unit tests and generate test coverage reports, run:
npm run coverage
To generate documentation for all modules and classes, run :
npm run typedoc
The dist/doc folder will be generated
If you want to have a compiled project, you can use bundle commands. After running each of the following commands, get the js bundled files from the root folder for each package:
@here/olp-sdk-authentication/dist
@here/olp-sdk-dataservice-read/dist
@here/olp-sdk-dataservice-api/dist
@here/olp-sdk-fetch/dist
To get bundled js with sourcemaps files for all modules, run:
npm run bundle:dev
To get minified version for production, run:
npm run bundle:prod
To get bundled and minified js files, run:
npm run bundle
Or use from CDN:
https://unpkg.com/@here/olp-sdk-authentication/dist/olp-sdk-authentification.min.js
https://unpkg.com/@here/olp-sdk-dataservice-api/dist/olp-sdk-dataservice-api.min.js
https://unpkg.com/@here/olp-sdk-dataservice-read/dist/olp-sdk-dataservice-read.min.js
https://unpkg.com/@here/olp-sdk-fetch/dist/olp-sdk-fetch.min.js
Copyright (C) 2019 HERE Europe B.V.
For license details, see the LICENSE file in the root of this project.