Seed multimodal demo geo graph
Build and deploy Docker image / build (push) Successful in 1m17s

This commit is contained in:
Ruslan Bakiev
2026-06-08 07:30:27 +07:00
parent 489f6dbf81
commit 41cc2d7886
+107 -62
View File
@@ -71,17 +71,17 @@ const now = new Date().toISOString()
const products: DemoProduct[] = [
{
uuid: '55555555-1111-4111-8111-111111111111',
name: 'Copper cathode',
unit: 'ton',
name: 'Solar panels',
unit: 'pallet',
},
{
uuid: '55555555-1111-4111-8111-222222222222',
name: 'Aluminum ingot',
unit: 'ton',
name: 'Industrial pumps',
unit: 'unit',
},
{
uuid: '55555555-1111-4111-8111-333333333333',
name: 'Wheat',
name: 'Soybean meal',
unit: 'ton',
},
]
@@ -90,34 +90,56 @@ const hubs: DemoHub[] = [
{
_key: 'logistics-demo-hub-1',
node_type: 'logistics',
name: 'Demo Almaty Hub',
latitude: 43.238949,
longitude: 76.889709,
country: 'Kazakhstan',
country_code: 'KZ',
transport_types: ['AUTO', 'RAIL'],
name: 'Guangzhou Rail Terminal',
latitude: 23.1291,
longitude: 113.2644,
country: 'China',
country_code: 'CN',
transport_types: ['auto', 'rail'],
synced_at: now,
},
{
_key: 'logistics-demo-hub-2',
node_type: 'logistics',
name: 'Demo Moscow Hub',
latitude: 55.755826,
longitude: 37.6173,
country: 'Russia',
country_code: 'RU',
transport_types: ['AUTO', 'RAIL'],
name: 'Shenzhen Yantian Port',
latitude: 22.5942,
longitude: 114.2743,
country: 'China',
country_code: 'CN',
transport_types: ['auto', 'sea'],
synced_at: now,
},
{
_key: 'logistics-demo-hub-3',
node_type: 'logistics',
name: 'Demo Urumqi Hub',
latitude: 43.825592,
longitude: 87.616848,
name: 'Harbin Rail Hub',
latitude: 45.8038,
longitude: 126.5349,
country: 'China',
country_code: 'CN',
transport_types: ['AUTO', 'RAIL'],
transport_types: ['auto', 'rail'],
synced_at: now,
},
{
_key: 'logistics-demo-hub-4',
node_type: 'logistics',
name: 'Vladivostok Commercial Port',
latitude: 43.1155,
longitude: 131.8855,
country: 'Russia',
country_code: 'RU',
transport_types: ['sea', 'rail'],
synced_at: now,
},
{
_key: 'logistics-demo-hub-5',
node_type: 'logistics',
name: 'Moscow Rail Hub',
latitude: 55.7558,
longitude: 37.6173,
country: 'Russia',
country_code: 'RU',
transport_types: ['auto', 'rail'],
synced_at: now,
},
]
@@ -125,30 +147,39 @@ const hubs: DemoHub[] = [
const suppliers: DemoSupplier[] = [
{
uuid: '66666666-2222-4111-8111-111111111111',
name: 'Demo Supplier Almaty',
latitude: 43.25667,
longitude: 76.92861,
country: 'Kazakhstan',
country_code: 'KZ',
name: 'Guangzhou Solar Factory',
latitude: 23.0462,
longitude: 113.3831,
country: 'China',
country_code: 'CN',
hubKey: 'logistics-demo-hub-1',
},
{
uuid: '66666666-2222-4111-8111-222222222222',
name: 'Demo Supplier Urumqi',
latitude: 43.825592,
longitude: 87.616848,
name: 'Shenzhen Pump Works',
latitude: 22.5431,
longitude: 114.0579,
country: 'China',
country_code: 'CN',
hubKey: 'logistics-demo-hub-2',
},
{
uuid: '66666666-2222-4111-8111-333333333333',
name: 'Harbin Agro Export',
latitude: 45.7424,
longitude: 126.6617,
country: 'China',
country_code: 'CN',
hubKey: 'logistics-demo-hub-3',
},
{
uuid: '66666666-2222-4111-8111-333333333333',
name: 'Demo Supplier Moscow',
latitude: 55.755826,
longitude: 37.6173,
uuid: '66666666-2222-4111-8111-444444444444',
name: 'Vladivostok Timber Terminal',
latitude: 43.1056,
longitude: 131.8735,
country: 'Russia',
country_code: 'RU',
hubKey: 'logistics-demo-hub-2',
hubKey: 'logistics-demo-hub-4',
},
]
@@ -205,46 +236,60 @@ for (const node of [...hubs, ...offers, ...supplierNodes]) {
}
const hubLinks = [
{
from: 'logistics-demo-hub-1',
to: 'logistics-demo-hub-2',
distanceKm: 3950,
travelTimeSeconds: 864000,
transportType: 'rail',
},
{
from: 'logistics-demo-hub-2',
to: 'logistics-demo-hub-1',
distanceKm: 3950,
travelTimeSeconds: 864000,
transportType: 'rail',
},
{
from: 'logistics-demo-hub-1',
to: 'logistics-demo-hub-3',
distanceKm: 1050,
travelTimeSeconds: 172800,
transportType: 'auto',
distanceKm: 3280,
travelTimeSeconds: 691200,
transportType: 'rail',
},
{
from: 'logistics-demo-hub-3',
to: 'logistics-demo-hub-1',
distanceKm: 1050,
travelTimeSeconds: 172800,
transportType: 'auto',
},
{
from: 'logistics-demo-hub-3',
to: 'logistics-demo-hub-2',
distanceKm: 4650,
travelTimeSeconds: 950400,
distanceKm: 3280,
travelTimeSeconds: 691200,
transportType: 'rail',
},
{
from: 'logistics-demo-hub-2',
to: 'logistics-demo-hub-4',
distanceKm: 2850,
travelTimeSeconds: 432000,
transportType: 'sea',
},
{
from: 'logistics-demo-hub-4',
to: 'logistics-demo-hub-2',
distanceKm: 2850,
travelTimeSeconds: 432000,
transportType: 'sea',
},
{
from: 'logistics-demo-hub-3',
to: 'logistics-demo-hub-4',
distanceKm: 650,
travelTimeSeconds: 129600,
transportType: 'rail',
},
{
from: 'logistics-demo-hub-4',
to: 'logistics-demo-hub-3',
distanceKm: 4650,
travelTimeSeconds: 950400,
distanceKm: 650,
travelTimeSeconds: 129600,
transportType: 'rail',
},
{
from: 'logistics-demo-hub-4',
to: 'logistics-demo-hub-5',
distanceKm: 9250,
travelTimeSeconds: 1036800,
transportType: 'rail',
},
{
from: 'logistics-demo-hub-5',
to: 'logistics-demo-hub-4',
distanceKm: 9250,
travelTimeSeconds: 1036800,
transportType: 'rail',
},
]