Skip to content

Instantly share code, notes, and snippets.

@mseptiaan
Created September 15, 2025 05:48
Show Gist options
  • Select an option

  • Save mseptiaan/9dbfc58f9adeaf360f6e424755581685 to your computer and use it in GitHub Desktop.

Select an option

Save mseptiaan/9dbfc58f9adeaf360f6e424755581685 to your computer and use it in GitHub Desktop.
Optimize Request
{
"time": "2025-09-14T13:23:48Z",
"fleet": [
{
"id": "fleet1",
"lastLocation": {
"lon": 106.8777549,
"lat": -6.132737494
},
"capacity": 100,
"special": []
},
{
"id": "fleet2",
"lastLocation": {
"lon": 106.9055927,
"lat": -6.199459992
},
"capacity": 50,
"special": []
},
{
"id": "fleet3",
"lastLocation": {
"lon": 106.8454974,
"lat": -6.161689823
},
"capacity": 100,
"special": []
},
{
"id": "fleet4",
"lastLocation": {
"lon": 106.8476186,
"lat": -6.271314047
},
"capacity": 50,
"special": []
},
{
"id": "fleet5",
"lastLocation": {
"lon": 106.6278047,
"lat": -6.2110679
},
"capacity": 100,
"special": []
},
{
"id": "fleet6",
"lastLocation": {
"lon": 106.8544985,
"lat": -6.517903854
},
"capacity": 50,
"special": []
},
{
"id": "fleet7",
"lastLocation": {
"lon": 106.8777549,
"lat": -6.132737494
},
"capacity": 100,
"special": ["HAZMAT", "FREEZER"]
},
{
"id": "fleet8",
"lastLocation": {
"lon": 106.9055927,
"lat": -6.199459992
},
"capacity": 50,
"special": ["HAZMAT", "FREEZER"]
},
{
"id": "fleet9",
"lastLocation": {
"lon": 106.8454974,
"lat": -6.161689823
},
"capacity": 100,
"special": ["FREEZER"]
},
{
"id": "fleet10",
"lastLocation": {
"lon": 106.8476186,
"lat": -6.271314047
},
"capacity": 50,
"special": ["FREEZER"]
}
],
"warehouse": [
{
"id": "ADW_JAKARTA_UTARA",
"location": {
"lon": 106.8777549,
"lat": -6.132737494
}
},
{
"id": "ADW_JAKARTA_TIMUR",
"location": {
"lon": 106.9055927,
"lat": -6.199459992
}
},
{
"id": "ADW_JAKARTA_PUSAT",
"location": {
"lon": 106.8454974,
"lat": -6.161689823
}
},
{
"id": "ADW_JAKARTA_SELATAN",
"location": {
"lon": 106.8476186,
"lat": -6.271314047
}
},
{
"id": "ADW_TANGERANG",
"location": {
"lon": 106.6278047,
"lat": -6.2110679
}
},
{
"id": "ADW_BOGOR",
"location": {
"lon": 106.8544985,
"lat": -6.517903854
}
}
],
"point": [
{
"id": "point1",
"name": "WARUNG SERBA ADA 1",
"location": {
"lon": 106.86746200417157,
"lat": -6.1795123237338485
},
"processingTime": 55,
"order": [
{
"id": "point1_order1",
"items": [
{
"name": "AGARASA PLAIN 6SX10G",
"qty": 100,
"totalWeight": 6,
"warehouse": "ADW_JAKARTA_UTARA",
"special": [
"FREEZER"
]
},
{
"name": "ABC AYAM GRENG 135ML",
"qty": 100,
"totalWeight": 13.5,
"warehouse": "ADW_JAKARTA_SELATAN",
"special": []
},
{
"name": "AGAR SWALL LILY RED 1SASET",
"qty": 472,
"totalWeight": 3.3040000000000003,
"warehouse": "ADW_TANGERANG",
"special": []
}
]
}
]
},
{
"id": "point2",
"name": "WARUNG SERBA ADA 2",
"location": {
"lon": 106.8334754740721,
"lat": -6.128639243472933
},
"processingTime": 40,
"order": [
{
"id": "point2_order1",
"items": [
{
"name": "ABC KECAP MANIS 600ML BTL PLASTIK",
"qty": 43,
"totalWeight": 25.8,
"warehouse": "ADW_JAKARTA_TIMUR",
"special": [
"FREEZER"
]
},
{
"name": "AGAR RUMPUT WALET RED",
"qty": 22,
"totalWeight": 0.154,
"warehouse": "ADW_JAKARTA_TIMUR",
"special": []
}
]
}
]
},
{
"id": "point3",
"name": "WARUNG SERBA ADA 3",
"location": {
"lon": 106.82332401953701,
"lat": -6.165369076547297
},
"processingTime": 51,
"order": [
{
"id": "point3_order1",
"items": [
{
"name": "AGAR SATELIT SUPER PUTIH",
"qty": 100,
"totalWeight": 0.7000000000000001,
"warehouse": "ADW_JAKARTA_TIMUR",
"special": []
},
{
"name": "ABC MACKEREL 155G CHILI",
"qty": 64,
"totalWeight": 9.92,
"warehouse": "ADW_JAKARTA_SELATAN",
"special": []
}
]
}
]
},
{
"id": "point4",
"name": "WARUNG SERBA ADA 4",
"location": {
"lon": 106.81213195819724,
"lat": -6.100176119964832
},
"processingTime": 10,
"order": [
{
"id": "point4_order1",
"items": [
{
"name": "ABC MACKEREL 155G TOMAT",
"qty": 100,
"totalWeight": 15.5,
"warehouse": "ADW_JAKARTA_UTARA",
"special": [
"HAZMAT"
]
},
{
"name": "A1 PERMEN JAGUNG 150G",
"qty": 79,
"totalWeight": 11.85,
"warehouse": "ADW_JAKARTA_TIMUR",
"special": [
"FREEZER"
]
}
]
}
]
},
{
"id": "point5",
"name": "WARUNG SERBA ADA 5",
"location": {
"lon": 106.89639316440804,
"lat": -6.154089605468547
},
"processingTime": 58,
"order": [
{
"id": "point5_order1",
"items": [
{
"name": "ABC SYRUP APOLO 630ML NENAS",
"qty": 40,
"totalWeight": 25.2,
"warehouse": "ADW_TANGERANG",
"special": []
},
{
"name": "A\u0026W SARSAPARILA 330ML",
"qty": 1,
"totalWeight": 0.33,
"warehouse": "ADW_JAKARTA_PUSAT",
"special": []
},
{
"name": "AGAR-AGAR DUNIA RAJAWALI",
"qty": 15,
"totalWeight": 0.105,
"warehouse": "ADW_JAKARTA_PUSAT",
"special": []
}
]
}
]
},
{
"id": "point6",
"name": "WARUNG SERBA ADA 6",
"location": {
"lon": 106.82966099446658,
"lat": -6.184173398537822
},
"processingTime": 20,
"order": [
{
"id": "point6_order1",
"items": [
{
"name": "AGAR DBL SWALL NO.1 RED",
"qty": 100,
"totalWeight": 0.7000000000000001,
"warehouse": "ADW_JAKARTA_UTARA",
"special": []
},
{
"name": "AGAR SWALL SUN RED",
"qty": 100,
"totalWeight": 0.7000000000000001,
"warehouse": "ADW_JAKARTA_UTARA",
"special": [
"HAZMAT"
]
},
{
"name": "AGAR DOUBLE SWALL SUN RED",
"qty": 100,
"totalWeight": 0.7000000000000001,
"warehouse": "ADW_JAKARTA_UTARA",
"special": []
},
{
"name": "AGAR SWALL LILY COKLAT",
"qty": 100,
"totalWeight": 0.7000000000000001,
"warehouse": "ADW_JAKARTA_SELATAN",
"special": []
},
{
"name": "ABC MACKEREL TOMAT 425",
"qty": 48,
"totalWeight": 20.4,
"warehouse": "ADW_JAKARTA_SELATAN",
"special": [
"HAZMAT"
]
},
{
"name": "AGAR RASA MELON EKONOMIS 12G",
"qty": 4,
"totalWeight": 0.048,
"warehouse": "ADW_JAKARTA_UTARA",
"special": [
"FREEZER"
]
}
]
}
]
},
{
"id": "point7",
"name": "WARUNG SERBA ADA 7",
"location": {
"lon": 106.84376162331235,
"lat": -6.151881758887457
},
"processingTime": 44,
"order": [
{
"id": "point7_order1",
"items": [
{
"name": "ABC JUS APPLE 1000ML",
"qty": 14,
"totalWeight": 14,
"warehouse": "ADW_TANGERANG",
"special": [
"FREEZER"
]
},
{
"name": "AGAR PONDAN 7G GREEN",
"qty": 74,
"totalWeight": 0.518,
"warehouse": "ADW_JAKARTA_TIMUR",
"special": [
"HAZMAT"
]
}
]
}
]
},
{
"id": "point8",
"name": "WARUNG SERBA ADA 8",
"location": {
"lon": 106.84673507932744,
"lat": -6.147363063565743
},
"processingTime": 33,
"order": [
{
"id": "point8_order1",
"items": [
{
"name": "AGARASA PLAIN 6SX10G",
"qty": 100,
"totalWeight": 6,
"warehouse": "ADW_TANGERANG",
"special": []
},
{
"name": "AGAR SWALL GLOBE RED",
"qty": 100,
"totalWeight": 0.7000000000000001,
"warehouse": "ADW_JAKARTA_PUSAT",
"special": []
},
{
"name": "AGAR RUMPUT WALET FIBRE RED",
"qty": 100,
"totalWeight": 0.7000000000000001,
"warehouse": "ADW_JAKARTA_TIMUR",
"special": []
},
{
"name": "ABC SYRUP SPC 630ML COCOPANDAN",
"qty": 9,
"totalWeight": 5.67,
"warehouse": "ADW_JAKARTA_PUSAT",
"special": []
}
]
}
]
},
{
"id": "point9",
"name": "WARUNG SERBA ADA 9",
"location": {
"lon": 106.85424587793662,
"lat": -6.155283037596923
},
"processingTime": 29,
"order": [
{
"id": "point9_order1",
"items": [
{
"name": "AGAR2 BOLA DUNIA GREEN 7G",
"qty": 100,
"totalWeight": 0.7000000000000001,
"warehouse": "ADW_TANGERANG",
"special": [
"HAZMAT"
]
},
{
"name": "ABC CUP SELERA PEDAS 65G TOMAT",
"qty": 100,
"totalWeight": 6.5,
"warehouse": "ADW_JAKARTA_TIMUR",
"special": []
},
{
"name": "26-PROMIL GOLD 400G",
"qty": 51,
"totalWeight": 20.400000000000002,
"warehouse": "ADW_JAKARTA_UTARA",
"special": []
}
]
}
]
},
{
"id": "point10",
"name": "WARUNG SERBA ADA 10",
"location": {
"lon": 106.8021424456594,
"lat": -6.1695683912240105
},
"processingTime": 59,
"order": [
{
"id": "point10_order1",
"items": [
{
"name": "AGAR SWALL GLOBE CHOCO",
"qty": 100,
"totalWeight": 0.7000000000000001,
"warehouse": "ADW_JAKARTA_SELATAN",
"special": []
},
{
"name": "AGARASA CKLT 22G",
"qty": 100,
"totalWeight": 2.1999999999999997,
"warehouse": "ADW_JAKARTA_SELATAN",
"special": []
},
{
"name": "AGAR-AGAR HOKA-HOKA DOLPIN 480G",
"qty": 17,
"totalWeight": 8.16,
"warehouse": "ADW_TANGERANG",
"special": []
},
{
"name": "AGAR SWALL SUN RED",
"qty": 15,
"totalWeight": 0.105,
"warehouse": "ADW_JAKARTA_SELATAN",
"special": []
}
]
}
]
},
{
"id": "point11",
"name": "WARUNG SERBA ADA 11",
"location": {
"lon": 106.87680740433035,
"lat": -6.1308544994887315
},
"processingTime": 59,
"order": [
{
"id": "point11_order1",
"items": [
{
"name": "ABC SAMBAL ASLI 135ML",
"qty": 98,
"totalWeight": 13.23,
"warehouse": "ADW_TANGERANG",
"special": []
},
{
"name": "AGAR SWALL GLOBE PUTIH",
"qty": 8,
"totalWeight": 0.056,
"warehouse": "ADW_JAKARTA_TIMUR",
"special": []
}
]
}
]
},
{
"id": "point12",
"name": "WARUNG SERBA ADA 12",
"location": {
"lon": 106.87955330821856,
"lat": -6.143277486175874
},
"processingTime": 50,
"order": [
{
"id": "point12_order1",
"items": [
{
"name": "AGAR2 BOLA DUNIA CLKT7G",
"qty": 100,
"totalWeight": 0.7000000000000001,
"warehouse": "ADW_JAKARTA_UTARA",
"special": []
},
{
"name": "ABC SYRUP SPC 630ML APEL",
"qty": 40,
"totalWeight": 25.2,
"warehouse": "ADW_JAKARTA_PUSAT",
"special": []
},
{
"name": "AGAR-AGAR DUNIA RAJAWALI",
"qty": 47,
"totalWeight": 0.329,
"warehouse": "ADW_TANGERANG",
"special": []
}
]
}
]
},
{
"id": "point13",
"name": "WARUNG SERBA ADA 13",
"location": {
"lon": 106.82358515206909,
"lat": -6.199585512688342
},
"processingTime": 11,
"order": [
{
"id": "point13_order1",
"items": [
{
"name": "AGAR RASA CKLT EKONOMIS 12G",
"qty": 100,
"totalWeight": 1.2,
"warehouse": "ADW_JAKARTA_PUSAT",
"special": []
},
{
"name": "AGAR PONDAN 7G GREEN",
"qty": 100,
"totalWeight": 0.7000000000000001,
"warehouse": "ADW_TANGERANG",
"special": [
"HAZMAT"
]
},
{
"name": "AGAR SWALL SUN GREEN",
"qty": 100,
"totalWeight": 0.7000000000000001,
"warehouse": "ADW_TANGERANG",
"special": [
"FREEZER"
]
},
{
"name": "ABC WHITE COFFE 30SX27.9G",
"qty": 26,
"totalWeight": 21.762,
"warehouse": "ADW_JAKARTA_SELATAN",
"special": []
}
]
}
]
},
{
"id": "point14",
"name": "WARUNG SERBA ADA 14",
"location": {
"lon": 106.84599793644716,
"lat": -6.191517119866637
},
"processingTime": 14,
"order": [
{
"id": "point14_order1",
"items": [
{
"name": "AGAR RASA STRAW EKONOMIS 12G",
"qty": 100,
"totalWeight": 1.2,
"warehouse": "ADW_TANGERANG",
"special": [
"FREEZER"
]
},
{
"name": "ABC JUICE GUAVA 1LTR",
"qty": 16,
"totalWeight": 16,
"warehouse": "ADW_TANGERANG",
"special": []
},
{
"name": "AGAR RUMPUT WALET FIBRE RED",
"qty": 100,
"totalWeight": 0.7000000000000001,
"warehouse": "ADW_TANGERANG",
"special": []
},
{
"name": "AGAR AGAR DUNIA RAJAWALI 7G.M",
"qty": 21,
"totalWeight": 0.147,
"warehouse": "ADW_JAKARTA_PUSAT",
"special": []
}
]
}
]
},
{
"id": "point15",
"name": "WARUNG SERBA ADA 15",
"location": {
"lon": 106.80886924995848,
"lat": -6.117386844957872
},
"processingTime": 53,
"order": [
{
"id": "point15_order1",
"items": [
{
"name": "AGAR SWALL SUN PUTIH",
"qty": 100,
"totalWeight": 0.7000000000000001,
"warehouse": "ADW_JAKARTA_SELATAN",
"special": []
},
{
"name": "AGAR SATELIT SO WELL COKLAT",
"qty": 100,
"totalWeight": 0.7000000000000001,
"warehouse": "ADW_JAKARTA_PUSAT",
"special": []
},
{
"name": "ABC SYRUP APOLO 630ML NENAS",
"qty": 23,
"totalWeight": 14.49,
"warehouse": "ADW_JAKARTA_SELATAN",
"special": []
}
]
}
]
}
],
"additionalInfo": {
"backToFirstPosition": true,
"workingHoursStart": "08:00",
"workingHoursEnd": "18:00",
"minCapacityUtilization": 0.9
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment