UNPKG

@stadiamaps/api

Version:
67 lines 2.07 kB
import { OsrmWaypoint } from './OsrmWaypoint'; import { OsrmRoute } from './OsrmRoute'; /** * * @export * @interface OsrmRouteResponse */ export interface OsrmRouteResponse { /** * * @type {string} * @memberof OsrmRouteResponse */ code: OsrmRouteResponseCodeEnum; /** * * @type {string} * @memberof OsrmRouteResponse */ message?: string; /** * * @type {string} * @memberof OsrmRouteResponse */ dataVersion?: string; /** * * @type {Array<OsrmWaypoint>} * @memberof OsrmRouteResponse */ waypoints?: Array<OsrmWaypoint>; /** * * @type {Array<OsrmRoute>} * @memberof OsrmRouteResponse */ routes?: Array<OsrmRoute>; } /** * @export */ export declare const OsrmRouteResponseCodeEnum: { readonly Ok: "Ok"; readonly InvalidUrl: "InvalidUrl"; readonly InvalidService: "InvalidService"; readonly InvalidVersion: "InvalidVersion"; readonly InvalidOptions: "InvalidOptions"; readonly InvalidQuery: "InvalidQuery"; readonly InvalidValue: "InvalidValue"; readonly NoSegment: "NoSegment"; readonly TooBig: "TooBig"; readonly NoRoute: "NoRoute"; readonly NoTable: "NoTable"; readonly NotImplemented: "NotImplemented"; readonly NoTrips: "NoTrips"; }; export type OsrmRouteResponseCodeEnum = (typeof OsrmRouteResponseCodeEnum)[keyof typeof OsrmRouteResponseCodeEnum]; /** * Check if a given object implements the OsrmRouteResponse interface. */ export declare function instanceOfOsrmRouteResponse(value: object): value is OsrmRouteResponse; export declare function OsrmRouteResponseFromJSON(json: any): OsrmRouteResponse; export declare function OsrmRouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsrmRouteResponse; export declare function OsrmRouteResponseToJSON(json: any): OsrmRouteResponse; export declare function OsrmRouteResponseToJSONTyped(value?: OsrmRouteResponse | null, ignoreDiscriminator?: boolean): any; //# sourceMappingURL=OsrmRouteResponse.d.ts.map