Skip to main content

Getting started


Installation

To install the library, use npm or yarn:

# Using npm
npm install geocore-node

# Using yarn
yarn add geocore-node

Initialization

Before making any API calls, initialize the Geocore instance with your API base URL and API key (optional):

const Geocore = require('geocore-node');

const geocore = new Geocore('https://api.example.com/v1', 'API key');

If API key is used, you can only access APIs that are allowed in the key's permissions. Else you need to call geoCore.Auth.login first.