This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user