UNPKG

@azure-rest/maps-route

Version:
18 lines 900 B
import type { LatLon } from "@azure/maps-common"; import type { BatchRequest, RouteGetRouteDirectionsQueryParamProperties } from "./generated/index.js"; /** * Transform an array of [Latitude, Longtitute] to a string in the following format: * "Latitude_1,Longtitute_1:Latitude_2,Longtitute_2:..." * * @param coordinates - An array of Latitude/Longtitute pair to transform. * @returns The transformed string. */ export declare function toColonDelimitedLatLonString(coordinates: LatLon[]): string; /** * Create a batch request body of a bunch of route direction requests. * * @param queryParamProperties - An object of the query parameters for a route direction request * @returns The composed batch request. */ export declare function createRouteDirectionsBatchRequest(queryParamProperties: RouteGetRouteDirectionsQueryParamProperties[]): BatchRequest; //# sourceMappingURL=helpers.d.ts.map