@googlemaps/routeoptimization 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -74,9 +74,116 @@
74
74
  }
75
75
  }
76
76
  ]
77
+ },
78
+ "OptimizeToursLongRunning": {
79
+ "requestType": "OptimizeToursRequest",
80
+ "responseType": "google.longrunning.Operation",
81
+ "options": {
82
+ "(google.api.http).post": "/v1/{parent=projects/*/locations/*}:optimizeToursLongRunning",
83
+ "(google.api.http).body": "*",
84
+ "(google.api.http).additional_bindings.post": "/v1/{parent=projects/*}:optimizeToursLongRunning",
85
+ "(google.api.http).additional_bindings.body": "*",
86
+ "(google.longrunning.operation_info).response_type": "OptimizeToursResponse",
87
+ "(google.longrunning.operation_info).metadata_type": "OptimizeToursLongRunningMetadata"
88
+ },
89
+ "parsedOptions": [
90
+ {
91
+ "(google.api.http)": {
92
+ "post": "/v1/{parent=projects/*/locations/*}:optimizeToursLongRunning",
93
+ "body": "*",
94
+ "additional_bindings": {
95
+ "post": "/v1/{parent=projects/*}:optimizeToursLongRunning",
96
+ "body": "*"
97
+ }
98
+ }
99
+ },
100
+ {
101
+ "(google.longrunning.operation_info)": {
102
+ "response_type": "OptimizeToursResponse",
103
+ "metadata_type": "OptimizeToursLongRunningMetadata"
104
+ }
105
+ }
106
+ ]
107
+ },
108
+ "OptimizeToursUri": {
109
+ "requestType": "OptimizeToursUriRequest",
110
+ "responseType": "google.longrunning.Operation",
111
+ "options": {
112
+ "(google.api.http).post": "/v1/{parent=projects/*/locations/*}:OptimizeToursUri",
113
+ "(google.api.http).body": "*",
114
+ "(google.api.http).additional_bindings.post": "/v1/{parent=projects/*}:OptimizeToursUri",
115
+ "(google.api.http).additional_bindings.body": "*",
116
+ "(google.longrunning.operation_info).response_type": "OptimizeToursUriResponse",
117
+ "(google.longrunning.operation_info).metadata_type": "OptimizeToursUriMetadata"
118
+ },
119
+ "parsedOptions": [
120
+ {
121
+ "(google.api.http)": {
122
+ "post": "/v1/{parent=projects/*/locations/*}:OptimizeToursUri",
123
+ "body": "*",
124
+ "additional_bindings": {
125
+ "post": "/v1/{parent=projects/*}:OptimizeToursUri",
126
+ "body": "*"
127
+ }
128
+ }
129
+ },
130
+ {
131
+ "(google.longrunning.operation_info)": {
132
+ "response_type": "OptimizeToursUriResponse",
133
+ "metadata_type": "OptimizeToursUriMetadata"
134
+ }
135
+ }
136
+ ]
137
+ }
138
+ }
139
+ },
140
+ "Uri": {
141
+ "fields": {
142
+ "uri": {
143
+ "type": "string",
144
+ "id": 1
145
+ }
146
+ }
147
+ },
148
+ "OptimizeToursUriRequest": {
149
+ "fields": {
150
+ "parent": {
151
+ "type": "string",
152
+ "id": 1,
153
+ "options": {
154
+ "(google.api.field_behavior)": "REQUIRED"
155
+ }
156
+ },
157
+ "input": {
158
+ "type": "Uri",
159
+ "id": 2,
160
+ "options": {
161
+ "(google.api.field_behavior)": "REQUIRED"
162
+ }
163
+ },
164
+ "output": {
165
+ "type": "Uri",
166
+ "id": 3,
167
+ "options": {
168
+ "(google.api.field_behavior)": "REQUIRED"
169
+ }
77
170
  }
78
171
  }
79
172
  },
173
+ "OptimizeToursUriResponse": {
174
+ "fields": {
175
+ "output": {
176
+ "type": "Uri",
177
+ "id": 1,
178
+ "options": {
179
+ "(google.api.field_behavior)": "OPTIONAL"
180
+ }
181
+ }
182
+ }
183
+ },
184
+ "OptimizeToursUriMetadata": {
185
+ "fields": {}
186
+ },
80
187
  "BatchOptimizeToursRequest": {
81
188
  "fields": {
82
189
  "parent": {
@@ -129,6 +236,9 @@
129
236
  "BatchOptimizeToursMetadata": {
130
237
  "fields": {}
131
238
  },
239
+ "OptimizeToursLongRunningMetadata": {
240
+ "fields": {}
241
+ },
132
242
  "OptimizeToursRequest": {
133
243
  "oneofs": {
134
244
  "_geodesicMetersPerSecond": {
@@ -228,7 +338,8 @@
228
338
  "values": {
229
339
  "DEFAULT_SOLVE": 0,
230
340
  "VALIDATE_ONLY": 1,
231
- "DETECT_SOME_INFEASIBLE_SHIPMENTS": 2
341
+ "DETECT_SOME_INFEASIBLE_SHIPMENTS": 2,
342
+ "TRANSFORM_AND_RETURN_REQUEST": 3
232
343
  }
233
344
  },
234
345
  "SearchMode": {
@@ -261,6 +372,10 @@
261
372
  "type": "OptimizeToursValidationError",
262
373
  "id": 5
263
374
  },
375
+ "processedRequest": {
376
+ "type": "OptimizeToursRequest",
377
+ "id": 21
378
+ },
264
379
  "metrics": {
265
380
  "type": "Metrics",
266
381
  "id": 6
@@ -321,6 +436,11 @@
321
436
  "type": "Vehicle",
322
437
  "id": 2
323
438
  },
439
+ "objectives": {
440
+ "rule": "repeated",
441
+ "type": "Objective",
442
+ "id": 17
443
+ },
324
444
  "maxActiveVehicles": {
325
445
  "type": "int32",
326
446
  "id": 4,
@@ -377,6 +497,47 @@
377
497
  }
378
498
  },
379
499
  "nested": {
500
+ "Objective": {
501
+ "oneofs": {
502
+ "_type": {
503
+ "oneof": [
504
+ "type"
505
+ ]
506
+ },
507
+ "_weight": {
508
+ "oneof": [
509
+ "weight"
510
+ ]
511
+ }
512
+ },
513
+ "fields": {
514
+ "type": {
515
+ "type": "Type",
516
+ "id": 1,
517
+ "options": {
518
+ "proto3_optional": true
519
+ }
520
+ },
521
+ "weight": {
522
+ "type": "double",
523
+ "id": 2,
524
+ "options": {
525
+ "proto3_optional": true
526
+ }
527
+ }
528
+ },
529
+ "nested": {
530
+ "Type": {
531
+ "values": {
532
+ "DEFAULT": 0,
533
+ "MIN_DISTANCE": 10,
534
+ "MIN_WORKING_TIME": 11,
535
+ "MIN_TRAVEL_TIME": 12,
536
+ "MIN_NUM_VEHICLES": 13
537
+ }
538
+ }
539
+ }
540
+ },
380
541
  "DurationDistanceMatrix": {
381
542
  "fields": {
382
543
  "rows": {
@@ -535,6 +696,13 @@
535
696
  },
536
697
  "nested": {
537
698
  "VisitRequest": {
699
+ "oneofs": {
700
+ "_avoidUTurns": {
701
+ "oneof": [
702
+ "avoidUTurns"
703
+ ]
704
+ }
705
+ },
538
706
  "fields": {
539
707
  "arrivalLocation": {
540
708
  "type": "google.type.LatLng",
@@ -583,6 +751,13 @@
583
751
  "label": {
584
752
  "type": "string",
585
753
  "id": 11
754
+ },
755
+ "avoidUTurns": {
756
+ "type": "bool",
757
+ "id": 13,
758
+ "options": {
759
+ "proto3_optional": true
760
+ }
586
761
  }
587
762
  }
588
763
  },
@@ -813,6 +988,16 @@
813
988
  "oneof": [
814
989
  "maxLoad"
815
990
  ]
991
+ },
992
+ "_costPerKilometer": {
993
+ "oneof": [
994
+ "costPerKilometer"
995
+ ]
996
+ },
997
+ "_costPerTraveledHour": {
998
+ "oneof": [
999
+ "costPerTraveledHour"
1000
+ ]
816
1001
  }
817
1002
  },
818
1003
  "fields": {
@@ -838,6 +1023,20 @@
838
1023
  "endLoadInterval": {
839
1024
  "type": "Interval",
840
1025
  "id": 5
1026
+ },
1027
+ "costPerKilometer": {
1028
+ "type": "LoadCost",
1029
+ "id": 6,
1030
+ "options": {
1031
+ "proto3_optional": true
1032
+ }
1033
+ },
1034
+ "costPerTraveledHour": {
1035
+ "type": "LoadCost",
1036
+ "id": 7,
1037
+ "options": {
1038
+ "proto3_optional": true
1039
+ }
841
1040
  }
842
1041
  },
843
1042
  "nested": {
@@ -862,6 +1061,48 @@
862
1061
  }
863
1062
  }
864
1063
  }
1064
+ },
1065
+ "LoadCost": {
1066
+ "oneofs": {
1067
+ "_loadThreshold": {
1068
+ "oneof": [
1069
+ "loadThreshold"
1070
+ ]
1071
+ },
1072
+ "_costPerUnitBelowThreshold": {
1073
+ "oneof": [
1074
+ "costPerUnitBelowThreshold"
1075
+ ]
1076
+ },
1077
+ "_costPerUnitAboveThreshold": {
1078
+ "oneof": [
1079
+ "costPerUnitAboveThreshold"
1080
+ ]
1081
+ }
1082
+ },
1083
+ "fields": {
1084
+ "loadThreshold": {
1085
+ "type": "int64",
1086
+ "id": 1,
1087
+ "options": {
1088
+ "proto3_optional": true
1089
+ }
1090
+ },
1091
+ "costPerUnitBelowThreshold": {
1092
+ "type": "double",
1093
+ "id": 2,
1094
+ "options": {
1095
+ "proto3_optional": true
1096
+ }
1097
+ },
1098
+ "costPerUnitAboveThreshold": {
1099
+ "type": "double",
1100
+ "id": 3,
1101
+ "options": {
1102
+ "proto3_optional": true
1103
+ }
1104
+ }
1105
+ }
865
1106
  }
866
1107
  }
867
1108
  },
@@ -1069,6 +1310,10 @@
1069
1310
  "options": {
1070
1311
  "(google.api.field_behavior)": "OPTIONAL"
1071
1312
  }
1313
+ },
1314
+ "vehicleStopover": {
1315
+ "type": "bool",
1316
+ "id": 4
1072
1317
  }
1073
1318
  }
1074
1319
  },
@@ -1198,6 +1443,10 @@
1198
1443
  "type": "AggregatedMetrics",
1199
1444
  "id": 12
1200
1445
  },
1446
+ "vehicleFullness": {
1447
+ "type": "VehicleFullness",
1448
+ "id": 20
1449
+ },
1201
1450
  "routeCosts": {
1202
1451
  "keyType": "string",
1203
1452
  "type": "double",
@@ -1210,6 +1459,13 @@
1210
1459
  },
1211
1460
  "nested": {
1212
1461
  "Visit": {
1462
+ "oneofs": {
1463
+ "_injectedSolutionLocationToken": {
1464
+ "oneof": [
1465
+ "injectedSolutionLocationToken"
1466
+ ]
1467
+ }
1468
+ },
1213
1469
  "fields": {
1214
1470
  "shipmentIndex": {
1215
1471
  "type": "int32",
@@ -1243,6 +1499,13 @@
1243
1499
  "visitLabel": {
1244
1500
  "type": "string",
1245
1501
  "id": 8
1502
+ },
1503
+ "injectedSolutionLocationToken": {
1504
+ "type": "int32",
1505
+ "id": 13,
1506
+ "options": {
1507
+ "proto3_optional": true
1508
+ }
1246
1509
  }
1247
1510
  }
1248
1511
  },
@@ -1329,6 +1592,18 @@
1329
1592
  }
1330
1593
  },
1331
1594
  "SkippedShipment": {
1595
+ "oneofs": {
1596
+ "_penaltyCost": {
1597
+ "oneof": [
1598
+ "penaltyCost"
1599
+ ]
1600
+ },
1601
+ "_estimatedIncompatibleVehicleRatio": {
1602
+ "oneof": [
1603
+ "estimatedIncompatibleVehicleRatio"
1604
+ ]
1605
+ }
1606
+ },
1332
1607
  "fields": {
1333
1608
  "index": {
1334
1609
  "type": "int32",
@@ -1338,6 +1613,20 @@
1338
1613
  "type": "string",
1339
1614
  "id": 2
1340
1615
  },
1616
+ "penaltyCost": {
1617
+ "type": "double",
1618
+ "id": 6,
1619
+ "options": {
1620
+ "proto3_optional": true
1621
+ }
1622
+ },
1623
+ "estimatedIncompatibleVehicleRatio": {
1624
+ "type": "double",
1625
+ "id": 5,
1626
+ "options": {
1627
+ "proto3_optional": true
1628
+ }
1629
+ },
1341
1630
  "reasons": {
1342
1631
  "rule": "repeated",
1343
1632
  "type": "Reason",
@@ -1365,6 +1654,11 @@
1365
1654
  "proto3_optional": true
1366
1655
  }
1367
1656
  },
1657
+ "exampleVehicleIndices": {
1658
+ "rule": "repeated",
1659
+ "type": "int32",
1660
+ "id": 5
1661
+ },
1368
1662
  "exampleExceededCapacityType": {
1369
1663
  "type": "string",
1370
1664
  "id": 3
@@ -1380,7 +1674,12 @@
1380
1674
  "CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DURATION_LIMIT": 4,
1381
1675
  "CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TRAVEL_DURATION_LIMIT": 5,
1382
1676
  "CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TIME_WINDOWS": 6,
1383
- "VEHICLE_NOT_ALLOWED": 7
1677
+ "VEHICLE_NOT_ALLOWED": 7,
1678
+ "VEHICLE_IGNORED": 8,
1679
+ "SHIPMENT_IGNORED": 9,
1680
+ "SKIPPED_IN_INJECTED_SOLUTION_CONSTRAINT": 10,
1681
+ "VEHICLE_ROUTE_IS_FULLY_SEQUENCE_CONSTRAINED": 11,
1682
+ "ZERO_PENALTY_COST": 13
1384
1683
  }
1385
1684
  }
1386
1685
  }
@@ -1388,11 +1687,37 @@
1388
1687
  }
1389
1688
  },
1390
1689
  "AggregatedMetrics": {
1690
+ "oneofs": {
1691
+ "_performedMandatoryShipmentCount": {
1692
+ "oneof": [
1693
+ "performedMandatoryShipmentCount"
1694
+ ]
1695
+ },
1696
+ "_performedShipmentPenaltyCostSum": {
1697
+ "oneof": [
1698
+ "performedShipmentPenaltyCostSum"
1699
+ ]
1700
+ }
1701
+ },
1391
1702
  "fields": {
1392
1703
  "performedShipmentCount": {
1393
1704
  "type": "int32",
1394
1705
  "id": 1
1395
1706
  },
1707
+ "performedMandatoryShipmentCount": {
1708
+ "type": "int32",
1709
+ "id": 12,
1710
+ "options": {
1711
+ "proto3_optional": true
1712
+ }
1713
+ },
1714
+ "performedShipmentPenaltyCostSum": {
1715
+ "type": "double",
1716
+ "id": 13,
1717
+ "options": {
1718
+ "proto3_optional": true
1719
+ }
1720
+ },
1396
1721
  "travelDuration": {
1397
1722
  "type": "google.protobuf.Duration",
1398
1723
  "id": 2
@@ -1428,6 +1753,84 @@
1428
1753
  }
1429
1754
  }
1430
1755
  },
1756
+ "VehicleFullness": {
1757
+ "oneofs": {
1758
+ "_maxFullness": {
1759
+ "oneof": [
1760
+ "maxFullness"
1761
+ ]
1762
+ },
1763
+ "_distance": {
1764
+ "oneof": [
1765
+ "distance"
1766
+ ]
1767
+ },
1768
+ "_travelDuration": {
1769
+ "oneof": [
1770
+ "travelDuration"
1771
+ ]
1772
+ },
1773
+ "_activeDuration": {
1774
+ "oneof": [
1775
+ "activeDuration"
1776
+ ]
1777
+ },
1778
+ "_maxLoad": {
1779
+ "oneof": [
1780
+ "maxLoad"
1781
+ ]
1782
+ },
1783
+ "_activeSpan": {
1784
+ "oneof": [
1785
+ "activeSpan"
1786
+ ]
1787
+ }
1788
+ },
1789
+ "fields": {
1790
+ "maxFullness": {
1791
+ "type": "double",
1792
+ "id": 1,
1793
+ "options": {
1794
+ "proto3_optional": true
1795
+ }
1796
+ },
1797
+ "distance": {
1798
+ "type": "double",
1799
+ "id": 2,
1800
+ "options": {
1801
+ "proto3_optional": true
1802
+ }
1803
+ },
1804
+ "travelDuration": {
1805
+ "type": "double",
1806
+ "id": 3,
1807
+ "options": {
1808
+ "proto3_optional": true
1809
+ }
1810
+ },
1811
+ "activeDuration": {
1812
+ "type": "double",
1813
+ "id": 4,
1814
+ "options": {
1815
+ "proto3_optional": true
1816
+ }
1817
+ },
1818
+ "maxLoad": {
1819
+ "type": "double",
1820
+ "id": 5,
1821
+ "options": {
1822
+ "proto3_optional": true
1823
+ }
1824
+ },
1825
+ "activeSpan": {
1826
+ "type": "double",
1827
+ "id": 6,
1828
+ "options": {
1829
+ "proto3_optional": true
1830
+ }
1831
+ }
1832
+ }
1833
+ },
1431
1834
  "InjectedSolutionConstraint": {
1432
1835
  "fields": {
1433
1836
  "routes": {
@@ -19,6 +19,16 @@
19
19
  "methods": [
20
20
  "batchOptimizeTours"
21
21
  ]
22
+ },
23
+ "OptimizeToursLongRunning": {
24
+ "methods": [
25
+ "optimizeToursLongRunning"
26
+ ]
27
+ },
28
+ "OptimizeToursUri": {
29
+ "methods": [
30
+ "optimizeToursUri"
31
+ ]
22
32
  }
23
33
  }
24
34
  },
@@ -34,6 +44,16 @@
34
44
  "methods": [
35
45
  "batchOptimizeTours"
36
46
  ]
47
+ },
48
+ "OptimizeToursLongRunning": {
49
+ "methods": [
50
+ "optimizeToursLongRunning"
51
+ ]
52
+ },
53
+ "OptimizeToursUri": {
54
+ "methods": [
55
+ "optimizeToursUri"
56
+ ]
37
57
  }
38
58
  }
39
59
  }