Restrict routing to maritime ports
Build and deploy Docker image / build (push) Successful in 27s

This commit is contained in:
Ruslan Bakiev
2026-09-29 19:48:41 +07:00
parent 77202f1f8d
commit 04e275da93
4 changed files with 130 additions and 4 deletions
+2
View File
@@ -1,6 +1,7 @@
import { createHash } from 'node:crypto'
import { readFileSync } from 'node:fs'
import { ensureGraph, getDb } from '../dist/db.js'
import { AFRICA_MARITIME_LOCODES } from '../dist/maritime.js'
type SupplierSeed = { lei: string; name: string; countryCode: string; city: string }
type HubSeed = {
@@ -155,6 +156,7 @@ const hubNodes = hubs.map((hub) => {
country,
country_code: hub.countryCode,
transport_types: transportTypes(hub.functionCode),
is_maritime_port: AFRICA_MARITIME_LOCODES.has(hub.code),
navigation_priority: priorityHubCodes.has(hub.code) ? 1 : 0,
source: 'UN/LOCODE Africa',
locode: hub.code,