BasePoint is a parent class, for more information visit its children documentation.
Defines the structure for BasePoint entities.
type BasePoint = {
_id?: string | ObjectId;
id: string | ObjectId;
createdAt: Date | string;
updatedAt: Date | string;
deletedAt?: Date;
adjacents: (string)[];
tags: (string)[];
kind: 'Pole' | 'Point' | 'JunctionBox';
coords: [number, number];
};
import OZMapSDK from 'ozmapsdk';
const sdk = new OZMapSDK('ozmapURL', { apiKey: 'yourApiKey' });
sdk.basePoint.find({ page: 1, limit: 10 }).then((pagination) => {
console.log('BasePoints:', pagination);
});
import OZMapSDK from 'ozmapsdk';
const sdk = new OZMapSDK('ozmapURL', { apiKey: 'yourApiKey' });
sdk.basePoint.findById('basePointId').then((basePoint) => {
console.log('BasePoint:', basePoint);
});