Compare commits

...

2 Commits

Author SHA1 Message Date
Mattéo Delabre 34f242b474
simulation: Set stop time to 15 s 2022-07-05 18:20:21 -04:00
Mattéo Delabre ffd7b0a822
More tamview -> tracktracker updates 2022-07-05 18:20:12 -04:00
7 changed files with 9 additions and 9 deletions

2
package-lock.json generated
View File

@ -1,5 +1,5 @@
{
"name": "tamview",
"name": "tracktracker",
"version": "0.1.0",
"lockfileVersion": 1,
"requires": true,

View File

@ -1,5 +1,5 @@
{
"name": "tamview",
"name": "tracktracker",
"version": "0.1.0",
"type": "module",
"scripts": {

View File

@ -1,6 +1,6 @@
#!/usr/bin/env -S node --experimental-json-modules
import network from "../src/tam/network.json";
import network from "../src/data/network.json";
import color from "color";
console.log("digraph {");

View File

@ -1,7 +1,7 @@
#!/usr/bin/env -S node --experimental-json-modules
import * as courses from "../src/tam/courses.js";
import network from "../src/tam/network.json";
import * as courses from "../src/data/courses.js";
import network from "../src/data/network.json";
import {displayTime} from "../src/util.js";
import process from "process";
import path from "path";

View File

@ -1,6 +1,6 @@
#!/usr/bin/env node
import * as network from '../src/tam/network.js';
import * as network from '../src/data/network.js';
import fs from 'fs/promises';
/** Geographical bounds of the Montpellier metropolitan area. */
@ -12,7 +12,7 @@ const bounds = [
const data = await network.fetch("TaM", "tram", bounds);
await fs.writeFile(
new URL("../src/tam/network.json", import.meta.url),
new URL("../src/data/network.json", import.meta.url),
JSON.stringify(
data,
(_, value) =>

View File

@ -7,7 +7,7 @@ import network from "./network.json";
const server = "http://localhost:4321";
// Time to stay at each stop (milliseconds)
const stopTime = 10000;
const stopTime = 15000;
// Step used to compute the vehicle bearing (meters)
const angleStep = 10;

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>TaM</title>
<title>tracktracker</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />