adds route editing
This commit is contained in:
@@ -1,31 +1,9 @@
|
||||
interface ValhallaResponse {
|
||||
trip: {
|
||||
legs: {
|
||||
shape: string[];
|
||||
shape: string;
|
||||
}[];
|
||||
};
|
||||
}
|
||||
|
||||
class ValhallaRoute {
|
||||
type: "Feature";
|
||||
properties: {};
|
||||
geometry: {
|
||||
type: "LineString";
|
||||
coordinates: number[][];
|
||||
};
|
||||
|
||||
constructor() {
|
||||
this.type = "Feature"
|
||||
this.properties = {}
|
||||
this.geometry = {
|
||||
type: "LineString",
|
||||
coordinates: []
|
||||
}
|
||||
}
|
||||
|
||||
toString() {
|
||||
return JSON.stringify(this);
|
||||
}
|
||||
}
|
||||
|
||||
export {type ValhallaResponse, ValhallaRoute}
|
||||
export { type ValhallaResponse }
|
||||
Reference in New Issue
Block a user