@logexpert/gis-sdk
v0.5.0
Published
The official Logexpert GIS SDK package
Downloads
6
Maintainers
Readme
GIS Logexpert JS SDK
Installation
npm install @logexpert/gis-sdk
Usage
Basic
import { Logexpert } from '@logexpert/gis-sdk'
const sdk = new Logexpert('https://gis.logexpert.ru')
sdk.auth.static('<your token>')
//or
sdk.auth.login('<username>', '<password>')
const objects = await sdk.objects.readByQuery({
$top: 10,
$select: ['Id', 'Name']
})
Get points
import { Logexpert } from '@logexpert/gis-sdk'
const sdk = new Logexpert('https://gis.logexpert.ru')
const points = await sdk.trackPoints.read('<object id>',
new Date('2022-17-14T00:00:00'), new Date('2022-07-14T23:59:59'))