Compare commits
No commits in common. "34f242b474053af0f054a92d604afbb6c48848bc" and "01af546b72db5330c2eacbba3e0b56075c3532bf" have entirely different histories.
34f242b474
...
01af546b72
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "tracktracker",
|
"name": "tamview",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "tracktracker",
|
"name": "tamview",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env -S node --experimental-json-modules
|
#!/usr/bin/env -S node --experimental-json-modules
|
||||||
|
|
||||||
import network from "../src/data/network.json";
|
import network from "../src/tam/network.json";
|
||||||
import color from "color";
|
import color from "color";
|
||||||
|
|
||||||
console.log("digraph {");
|
console.log("digraph {");
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env -S node --experimental-json-modules
|
#!/usr/bin/env -S node --experimental-json-modules
|
||||||
|
|
||||||
import * as courses from "../src/data/courses.js";
|
import * as courses from "../src/tam/courses.js";
|
||||||
import network from "../src/data/network.json";
|
import network from "../src/tam/network.json";
|
||||||
import {displayTime} from "../src/util.js";
|
import {displayTime} from "../src/util.js";
|
||||||
import process from "process";
|
import process from "process";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
import * as network from '../src/data/network.js';
|
import * as network from '../src/tam/network.js';
|
||||||
import fs from 'fs/promises';
|
import fs from 'fs/promises';
|
||||||
|
|
||||||
/** Geographical bounds of the Montpellier metropolitan area. */
|
/** Geographical bounds of the Montpellier metropolitan area. */
|
||||||
|
@ -12,7 +12,7 @@ const bounds = [
|
||||||
const data = await network.fetch("TaM", "tram", bounds);
|
const data = await network.fetch("TaM", "tram", bounds);
|
||||||
|
|
||||||
await fs.writeFile(
|
await fs.writeFile(
|
||||||
new URL("../src/data/network.json", import.meta.url),
|
new URL("../src/tam/network.json", import.meta.url),
|
||||||
JSON.stringify(
|
JSON.stringify(
|
||||||
data,
|
data,
|
||||||
(_, value) =>
|
(_, value) =>
|
||||||
|
|
|
@ -7,7 +7,7 @@ import network from "./network.json";
|
||||||
const server = "http://localhost:4321";
|
const server = "http://localhost:4321";
|
||||||
|
|
||||||
// Time to stay at each stop (milliseconds)
|
// Time to stay at each stop (milliseconds)
|
||||||
const stopTime = 15000;
|
const stopTime = 10000;
|
||||||
|
|
||||||
// Step used to compute the vehicle bearing (meters)
|
// Step used to compute the vehicle bearing (meters)
|
||||||
const angleStep = 10;
|
const angleStep = 10;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>tracktracker</title>
|
<title>TaM</title>
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue