UNPKG

@geoapify/route-planner-sdk

Version:

TypeScript SDK for the Geoapify Route Planner API. Supports route optimization, delivery planning, and timeline visualization in browser and Node.js

16 lines (15 loc) 741 B
import { AddAssignOptions } from "../../../../models"; import { AssignStrategy } from "../base"; import { RouteResultEditorBase } from "../../route-result-editor-base"; /** * Strategy that inserts jobs while preserving the order of existing stops. * * Behavior: * - append: true → Appends to end of route (no API call) * - afterId/insertAtIndex → Inserts at specified position (no API call) * - No position params → Uses Route Matrix API to find optimal insertion point */ export declare class JobAssignPreserveOrderStrategy implements AssignStrategy { execute(context: RouteResultEditorBase, agentIndex: number, jobIndexes: number[], options: AddAssignOptions): Promise<boolean>; private removeJobsFromCurrentAgents; }