Add stats track tests (failing)
This commit is contained in:
parent
bd2e89ef06
commit
7c8c71a3de
4 changed files with 66 additions and 8 deletions
|
|
@ -107,3 +107,10 @@ btools = {};
|
|||
})((util = btools.util || (btools.util = {})));
|
||||
})(btools || (btools = {}));
|
||||
btools.util.CheapRuler.__static_initialize();
|
||||
|
||||
btools.util.CheapRuler.toIntegerLngLat = (coordinate) => {
|
||||
const ilon = (coordinate[0] + 180) * 1e6;
|
||||
const ilat = (coordinate[1] + 90) * 1e6;
|
||||
|
||||
return [ilon, ilat];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
(function () {
|
||||
// Calculates time and energy stats
|
||||
//
|
||||
// from BRouter btools.router.StdPath
|
||||
|
||||
class BExpressionContextWay {
|
||||
getMaxspeed() {
|
||||
|
|
@ -18,6 +16,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
// from BRouter btools.router.RoutingContext
|
||||
class RoutingContext {
|
||||
constructor() {
|
||||
this.expctxGlobal = new BExpressionContext();
|
||||
|
|
@ -32,6 +31,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
// from BRouter btools.router.StdPath
|
||||
class StdPath {
|
||||
constructor() {
|
||||
this.totalTime = 0;
|
||||
|
|
@ -143,4 +143,5 @@
|
|||
StdPath.GRAVITY = 9.81;
|
||||
|
||||
BR.StdPath = StdPath;
|
||||
BR.RoutingContext = RoutingContext;
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue