Initial Commit

This commit is contained in:
Janis Meister
2022-02-23 12:30:12 +01:00
parent c2842e0523
commit a71db2fa0e
47 changed files with 6757 additions and 2963 deletions

View File

@@ -0,0 +1,47 @@
interface OsrmWaypoint {
hint?: string;
distance?: number;
location?: Array<number>;
name?: string;
}
interface OsrmManeuver {
type?: string;
modifier?: string;
}
export interface OsrmStep {
driving_side?: string;
duration?: number;
distance?: number;
name?: string;
maneuver?: OsrmManeuver;
}
interface OsrmLeg {
steps?: Array<OsrmStep>;
weight?: number;
distance?: number;
summary?: string;
duration?: number;
}
interface OsrmGeometry {
type: GeometryType;
coordinates?: Array<Array<number>>;
}
enum GeometryType {
LINE_STRING = "LineString"
}
interface OsrmRoute {
legs: Array<OsrmLeg>;
geometry: OsrmGeometry;
}
export interface Osrm {
code?: string;
waypoints?: Array<OsrmWaypoint>;
routes: Array<OsrmRoute>;
}