UNPKG

@nativescript-community/ui-carto

Version:

NativeScript plugin for CARTO Mobile SDK

45 lines 1.26 kB
import { BaseNative } from '../BaseNative'; import { MapPosVector, NativeVector } from '../core'; import { Projection } from '../projections'; export class BaseRoutingService extends BaseNative { } export class RoutingInstructionVector extends NativeVector { } export class RoutingResult extends BaseNative { constructor(native) { super(null, native); } getProjection() { return new Projection(this.native.getProjection()); } getTotalTime() { return this.native.getTotalTime(); } getPoints() { return new MapPosVector(this.native.getPoints()); } getTotalDistance() { return this.native.getTotalDistance(); } getInstructions() { return new RoutingInstructionVector(this.native.getInstructions()); } getRawResult() { return this.native.getRawResult(); } } export class RouteMatchingResult extends BaseNative { constructor(native) { super(null, native); } getProjection() { return new Projection(this.native.getProjection()); } getPoints() { return new MapPosVector(this.native.getPoints()); } getRawResult() { return this.native.getRawResult(); } } //# sourceMappingURL=index.common.js.map