|
|
@ -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) => |
|
|
|