@googlemaps/routing 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.
Files changed (34) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +5 -6
  3. package/build/protos/google/maps/routing/v2/fallback_info.proto +1 -1
  4. package/build/protos/google/maps/routing/v2/geocoding_results.proto +1 -1
  5. package/build/protos/google/maps/routing/v2/localized_time.proto +40 -0
  6. package/build/protos/google/maps/routing/v2/location.proto +5 -5
  7. package/build/protos/google/maps/routing/v2/maneuver.proto +7 -1
  8. package/build/protos/google/maps/routing/v2/navigation_instruction.proto +1 -1
  9. package/build/protos/google/maps/routing/v2/polyline.proto +1 -1
  10. package/build/protos/google/maps/routing/v2/route.proto +221 -45
  11. package/build/protos/google/maps/routing/v2/route_label.proto +1 -1
  12. package/build/protos/google/maps/routing/v2/route_modifiers.proto +10 -12
  13. package/build/protos/google/maps/routing/v2/route_travel_mode.proto +4 -1
  14. package/build/protos/google/maps/routing/v2/routes_service.proto +111 -10
  15. package/build/protos/google/maps/routing/v2/routing_preference.proto +1 -1
  16. package/build/protos/google/maps/routing/v2/speed_reading_interval.proto +1 -1
  17. package/build/protos/google/maps/routing/v2/toll_info.proto +1 -1
  18. package/build/protos/google/maps/routing/v2/toll_passes.proto +12 -2
  19. package/build/protos/google/maps/routing/v2/traffic_model.proto +52 -0
  20. package/build/protos/google/maps/routing/v2/transit.proto +161 -0
  21. package/build/protos/google/maps/routing/v2/transit_preferences.proto +75 -0
  22. package/build/protos/google/maps/routing/v2/units.proto +1 -1
  23. package/build/protos/google/maps/routing/v2/vehicle_emission_type.proto +1 -1
  24. package/build/protos/google/maps/routing/v2/vehicle_info.proto +4 -4
  25. package/build/protos/google/maps/routing/v2/waypoint.proto +1 -1
  26. package/build/protos/protos.d.ts +2153 -186
  27. package/build/protos/protos.js +5691 -382
  28. package/build/protos/protos.json +491 -24
  29. package/build/src/v2/routes_client.d.ts +67 -8
  30. package/build/src/v2/routes_client.js +26 -3
  31. package/package.json +11 -8
  32. package/build/src/index.js.map +0 -1
  33. package/build/src/v2/index.js.map +0 -1
  34. package/build/src/v2/routes_client.js.map +0 -1
@@ -172,6 +172,18 @@
172
172
  }
173
173
  }
174
174
  },
175
+ "Timestamp": {
176
+ "fields": {
177
+ "seconds": {
178
+ "type": "int64",
179
+ "id": 1
180
+ },
181
+ "nanos": {
182
+ "type": "int32",
183
+ "id": 2
184
+ }
185
+ }
186
+ },
175
187
  "FileDescriptorSet": {
176
188
  "fields": {
177
189
  "file": {
@@ -1141,18 +1153,6 @@
1141
1153
  }
1142
1154
  }
1143
1155
  }
1144
- },
1145
- "Timestamp": {
1146
- "fields": {
1147
- "seconds": {
1148
- "type": "int64",
1149
- "id": 1
1150
- },
1151
- "nanos": {
1152
- "type": "int32",
1153
- "id": 2
1154
- }
1155
- }
1156
1156
  }
1157
1157
  }
1158
1158
  },
@@ -1205,6 +1205,18 @@
1205
1205
  }
1206
1206
  }
1207
1207
  },
1208
+ "LocalizedText": {
1209
+ "fields": {
1210
+ "text": {
1211
+ "type": "string",
1212
+ "id": 1
1213
+ },
1214
+ "languageCode": {
1215
+ "type": "string",
1216
+ "id": 2
1217
+ }
1218
+ }
1219
+ },
1208
1220
  "Money": {
1209
1221
  "fields": {
1210
1222
  "currencyCode": {
@@ -1231,7 +1243,7 @@
1231
1243
  "options": {
1232
1244
  "cc_enable_arenas": true,
1233
1245
  "csharp_namespace": "Google.Maps.Routing.V2",
1234
- "go_package": "google.golang.org/genproto/googleapis/maps/routing/v2;routing",
1246
+ "go_package": "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb",
1235
1247
  "java_multiple_files": true,
1236
1248
  "java_outer_classname": "WaypointProto",
1237
1249
  "java_package": "com.google.maps.routing.v2",
@@ -1318,6 +1330,18 @@
1318
1330
  }
1319
1331
  }
1320
1332
  },
1333
+ "LocalizedTime": {
1334
+ "fields": {
1335
+ "time": {
1336
+ "type": "google.type.LocalizedText",
1337
+ "id": 1
1338
+ },
1339
+ "timeZone": {
1340
+ "type": "string",
1341
+ "id": 2
1342
+ }
1343
+ }
1344
+ },
1321
1345
  "Location": {
1322
1346
  "fields": {
1323
1347
  "latLng": {
@@ -1350,7 +1374,9 @@
1350
1374
  "FERRY": 15,
1351
1375
  "FERRY_TRAIN": 16,
1352
1376
  "ROUNDABOUT_LEFT": 17,
1353
- "ROUNDABOUT_RIGHT": 18
1377
+ "ROUNDABOUT_RIGHT": 18,
1378
+ "DEPART": 19,
1379
+ "NAME_CHANGE": 20
1354
1380
  }
1355
1381
  },
1356
1382
  "NavigationInstruction": {
@@ -1444,10 +1470,41 @@
1444
1470
  "type": "RouteTravelAdvisory",
1445
1471
  "id": 9
1446
1472
  },
1473
+ "optimizedIntermediateWaypointIndex": {
1474
+ "rule": "repeated",
1475
+ "type": "int32",
1476
+ "id": 10
1477
+ },
1478
+ "localizedValues": {
1479
+ "type": "RouteLocalizedValues",
1480
+ "id": 11
1481
+ },
1447
1482
  "routeToken": {
1448
1483
  "type": "string",
1449
1484
  "id": 12
1450
1485
  }
1486
+ },
1487
+ "nested": {
1488
+ "RouteLocalizedValues": {
1489
+ "fields": {
1490
+ "distance": {
1491
+ "type": "google.type.LocalizedText",
1492
+ "id": 1
1493
+ },
1494
+ "duration": {
1495
+ "type": "google.type.LocalizedText",
1496
+ "id": 2
1497
+ },
1498
+ "staticDuration": {
1499
+ "type": "google.type.LocalizedText",
1500
+ "id": 3
1501
+ },
1502
+ "transitFare": {
1503
+ "type": "google.type.LocalizedText",
1504
+ "id": 4
1505
+ }
1506
+ }
1507
+ }
1451
1508
  }
1452
1509
  },
1453
1510
  "RouteTravelAdvisory": {
@@ -1464,6 +1521,14 @@
1464
1521
  "fuelConsumptionMicroliters": {
1465
1522
  "type": "int64",
1466
1523
  "id": 5
1524
+ },
1525
+ "routeRestrictionsPartiallyIgnored": {
1526
+ "type": "bool",
1527
+ "id": 6
1528
+ },
1529
+ "transitFare": {
1530
+ "type": "google.type.Money",
1531
+ "id": 7
1467
1532
  }
1468
1533
  }
1469
1534
  },
@@ -1523,6 +1588,81 @@
1523
1588
  "travelAdvisory": {
1524
1589
  "type": "RouteLegTravelAdvisory",
1525
1590
  "id": 8
1591
+ },
1592
+ "localizedValues": {
1593
+ "type": "RouteLegLocalizedValues",
1594
+ "id": 9
1595
+ },
1596
+ "stepsOverview": {
1597
+ "type": "StepsOverview",
1598
+ "id": 10
1599
+ }
1600
+ },
1601
+ "nested": {
1602
+ "RouteLegLocalizedValues": {
1603
+ "fields": {
1604
+ "distance": {
1605
+ "type": "google.type.LocalizedText",
1606
+ "id": 1
1607
+ },
1608
+ "duration": {
1609
+ "type": "google.type.LocalizedText",
1610
+ "id": 2
1611
+ },
1612
+ "staticDuration": {
1613
+ "type": "google.type.LocalizedText",
1614
+ "id": 3
1615
+ }
1616
+ }
1617
+ },
1618
+ "StepsOverview": {
1619
+ "fields": {
1620
+ "multiModalSegments": {
1621
+ "rule": "repeated",
1622
+ "type": "MultiModalSegment",
1623
+ "id": 1
1624
+ }
1625
+ },
1626
+ "nested": {
1627
+ "MultiModalSegment": {
1628
+ "oneofs": {
1629
+ "_stepStartIndex": {
1630
+ "oneof": [
1631
+ "stepStartIndex"
1632
+ ]
1633
+ },
1634
+ "_stepEndIndex": {
1635
+ "oneof": [
1636
+ "stepEndIndex"
1637
+ ]
1638
+ }
1639
+ },
1640
+ "fields": {
1641
+ "stepStartIndex": {
1642
+ "type": "int32",
1643
+ "id": 1,
1644
+ "options": {
1645
+ "proto3_optional": true
1646
+ }
1647
+ },
1648
+ "stepEndIndex": {
1649
+ "type": "int32",
1650
+ "id": 2,
1651
+ "options": {
1652
+ "proto3_optional": true
1653
+ }
1654
+ },
1655
+ "navigationInstruction": {
1656
+ "type": "NavigationInstruction",
1657
+ "id": 3
1658
+ },
1659
+ "travelMode": {
1660
+ "type": "RouteTravelMode",
1661
+ "id": 4
1662
+ }
1663
+ }
1664
+ }
1665
+ }
1526
1666
  }
1527
1667
  }
1528
1668
  },
@@ -1555,6 +1695,98 @@
1555
1695
  "travelAdvisory": {
1556
1696
  "type": "RouteLegStepTravelAdvisory",
1557
1697
  "id": 7
1698
+ },
1699
+ "localizedValues": {
1700
+ "type": "RouteLegStepLocalizedValues",
1701
+ "id": 8
1702
+ },
1703
+ "transitDetails": {
1704
+ "type": "RouteLegStepTransitDetails",
1705
+ "id": 9
1706
+ },
1707
+ "travelMode": {
1708
+ "type": "RouteTravelMode",
1709
+ "id": 10
1710
+ }
1711
+ },
1712
+ "nested": {
1713
+ "RouteLegStepLocalizedValues": {
1714
+ "fields": {
1715
+ "distance": {
1716
+ "type": "google.type.LocalizedText",
1717
+ "id": 1
1718
+ },
1719
+ "staticDuration": {
1720
+ "type": "google.type.LocalizedText",
1721
+ "id": 3
1722
+ }
1723
+ }
1724
+ }
1725
+ }
1726
+ },
1727
+ "RouteLegStepTransitDetails": {
1728
+ "fields": {
1729
+ "stopDetails": {
1730
+ "type": "TransitStopDetails",
1731
+ "id": 1
1732
+ },
1733
+ "localizedValues": {
1734
+ "type": "TransitDetailsLocalizedValues",
1735
+ "id": 2
1736
+ },
1737
+ "headsign": {
1738
+ "type": "string",
1739
+ "id": 3
1740
+ },
1741
+ "headway": {
1742
+ "type": "google.protobuf.Duration",
1743
+ "id": 4
1744
+ },
1745
+ "transitLine": {
1746
+ "type": "TransitLine",
1747
+ "id": 5
1748
+ },
1749
+ "stopCount": {
1750
+ "type": "int32",
1751
+ "id": 6
1752
+ },
1753
+ "tripShortText": {
1754
+ "type": "string",
1755
+ "id": 7
1756
+ }
1757
+ },
1758
+ "nested": {
1759
+ "TransitStopDetails": {
1760
+ "fields": {
1761
+ "arrivalStop": {
1762
+ "type": "TransitStop",
1763
+ "id": 1
1764
+ },
1765
+ "arrivalTime": {
1766
+ "type": "google.protobuf.Timestamp",
1767
+ "id": 2
1768
+ },
1769
+ "departureStop": {
1770
+ "type": "TransitStop",
1771
+ "id": 3
1772
+ },
1773
+ "departureTime": {
1774
+ "type": "google.protobuf.Timestamp",
1775
+ "id": 4
1776
+ }
1777
+ }
1778
+ },
1779
+ "TransitDetailsLocalizedValues": {
1780
+ "fields": {
1781
+ "arrivalTime": {
1782
+ "type": "LocalizedTime",
1783
+ "id": 1
1784
+ },
1785
+ "departureTime": {
1786
+ "type": "LocalizedTime",
1787
+ "id": 2
1788
+ }
1789
+ }
1558
1790
  }
1559
1791
  }
1560
1792
  },
@@ -1566,6 +1798,16 @@
1566
1798
  "FUEL_EFFICIENT": 3
1567
1799
  }
1568
1800
  },
1801
+ "RouteTravelMode": {
1802
+ "values": {
1803
+ "TRAVEL_MODE_UNSPECIFIED": 0,
1804
+ "DRIVE": 1,
1805
+ "BICYCLE": 2,
1806
+ "WALK": 3,
1807
+ "TWO_WHEELER": 4,
1808
+ "TRANSIT": 7
1809
+ }
1810
+ },
1569
1811
  "SpeedReadingInterval": {
1570
1812
  "oneofs": {
1571
1813
  "_startPolylinePointIndex": {
@@ -1624,6 +1866,116 @@
1624
1866
  }
1625
1867
  }
1626
1868
  },
1869
+ "TransitAgency": {
1870
+ "fields": {
1871
+ "name": {
1872
+ "type": "string",
1873
+ "id": 1
1874
+ },
1875
+ "phoneNumber": {
1876
+ "type": "string",
1877
+ "id": 2
1878
+ },
1879
+ "uri": {
1880
+ "type": "string",
1881
+ "id": 3
1882
+ }
1883
+ }
1884
+ },
1885
+ "TransitLine": {
1886
+ "fields": {
1887
+ "agencies": {
1888
+ "rule": "repeated",
1889
+ "type": "TransitAgency",
1890
+ "id": 1
1891
+ },
1892
+ "name": {
1893
+ "type": "string",
1894
+ "id": 2
1895
+ },
1896
+ "uri": {
1897
+ "type": "string",
1898
+ "id": 3
1899
+ },
1900
+ "color": {
1901
+ "type": "string",
1902
+ "id": 4
1903
+ },
1904
+ "iconUri": {
1905
+ "type": "string",
1906
+ "id": 5
1907
+ },
1908
+ "nameShort": {
1909
+ "type": "string",
1910
+ "id": 6
1911
+ },
1912
+ "textColor": {
1913
+ "type": "string",
1914
+ "id": 7
1915
+ },
1916
+ "vehicle": {
1917
+ "type": "TransitVehicle",
1918
+ "id": 8
1919
+ }
1920
+ }
1921
+ },
1922
+ "TransitStop": {
1923
+ "fields": {
1924
+ "name": {
1925
+ "type": "string",
1926
+ "id": 1
1927
+ },
1928
+ "location": {
1929
+ "type": "Location",
1930
+ "id": 2
1931
+ }
1932
+ }
1933
+ },
1934
+ "TransitVehicle": {
1935
+ "fields": {
1936
+ "name": {
1937
+ "type": "google.type.LocalizedText",
1938
+ "id": 1
1939
+ },
1940
+ "type": {
1941
+ "type": "TransitVehicleType",
1942
+ "id": 2
1943
+ },
1944
+ "iconUri": {
1945
+ "type": "string",
1946
+ "id": 3
1947
+ },
1948
+ "localIconUri": {
1949
+ "type": "string",
1950
+ "id": 4
1951
+ }
1952
+ },
1953
+ "nested": {
1954
+ "TransitVehicleType": {
1955
+ "values": {
1956
+ "TRANSIT_VEHICLE_TYPE_UNSPECIFIED": 0,
1957
+ "BUS": 1,
1958
+ "CABLE_CAR": 2,
1959
+ "COMMUTER_TRAIN": 3,
1960
+ "FERRY": 4,
1961
+ "FUNICULAR": 5,
1962
+ "GONDOLA_LIFT": 6,
1963
+ "HEAVY_RAIL": 7,
1964
+ "HIGH_SPEED_TRAIN": 8,
1965
+ "INTERCITY_BUS": 9,
1966
+ "LONG_DISTANCE_TRAIN": 10,
1967
+ "METRO_RAIL": 11,
1968
+ "MONORAIL": 12,
1969
+ "OTHER": 13,
1970
+ "RAIL": 14,
1971
+ "SHARE_TAXI": 15,
1972
+ "SUBWAY": 16,
1973
+ "TRAM": 17,
1974
+ "TROLLEYBUS": 18
1975
+ }
1976
+ }
1977
+ }
1978
+ },
1627
1979
  "RouteModifiers": {
1628
1980
  "fields": {
1629
1981
  "avoidTolls": {
@@ -1654,6 +2006,11 @@
1654
2006
  }
1655
2007
  },
1656
2008
  "TollPass": {
2009
+ "valuesOptions": {
2010
+ "US_MI_IQ_PROX_CARD": {
2011
+ "deprecated": true
2012
+ }
2013
+ },
1657
2014
  "values": {
1658
2015
  "TOLL_PASS_UNSPECIFIED": 0,
1659
2016
  "AU_ETOLL_TAG": 82,
@@ -1714,6 +2071,7 @@
1714
2071
  "US_MI_BCPASS": 94,
1715
2072
  "US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG": 37,
1716
2073
  "US_MI_IQ_PROX_CARD": 38,
2074
+ "US_MI_IQ_TAG": 95,
1717
2075
  "US_MI_MACKINAC_BRIDGE_MAC_PASS": 39,
1718
2076
  "US_MI_NEXPRESS_TOLL": 40,
1719
2077
  "US_MN_EZPASSMN": 41,
@@ -1729,6 +2087,7 @@
1729
2087
  "US_PA_EZPASSPA": 45,
1730
2088
  "US_RI_EZPASSRI": 46,
1731
2089
  "US_SC_PALPASS": 47,
2090
+ "US_TX_AVI_TAG": 97,
1732
2091
  "US_TX_BANCPASS": 48,
1733
2092
  "US_TX_DEL_RIO_PASS": 49,
1734
2093
  "US_TX_EFAST_PASS": 50,
@@ -1736,6 +2095,7 @@
1736
2095
  "US_TX_EPTOLL": 52,
1737
2096
  "US_TX_EZ_CROSS": 53,
1738
2097
  "US_TX_EZTAG": 54,
2098
+ "US_TX_FUEGO_TAG": 96,
1739
2099
  "US_TX_LAREDO_TRADE_TAG": 55,
1740
2100
  "US_TX_PLUSPASS": 56,
1741
2101
  "US_TX_TOLLTAG": 57,
@@ -1767,15 +2127,6 @@
1767
2127
  "DIESEL": 4
1768
2128
  }
1769
2129
  },
1770
- "RouteTravelMode": {
1771
- "values": {
1772
- "TRAVEL_MODE_UNSPECIFIED": 0,
1773
- "DRIVE": 1,
1774
- "BICYCLE": 2,
1775
- "WALK": 3,
1776
- "TWO_WHEELER": 4
1777
- }
1778
- },
1779
2130
  "Routes": {
1780
2131
  "options": {
1781
2132
  "(google.api.default_host)": "routes.googleapis.com"
@@ -1875,6 +2226,13 @@
1875
2226
  "(google.api.field_behavior)": "OPTIONAL"
1876
2227
  }
1877
2228
  },
2229
+ "arrivalTime": {
2230
+ "type": "google.protobuf.Timestamp",
2231
+ "id": 19,
2232
+ "options": {
2233
+ "(google.api.field_behavior)": "OPTIONAL"
2234
+ }
2235
+ },
1878
2236
  "computeAlternativeRoutes": {
1879
2237
  "type": "bool",
1880
2238
  "id": 8,
@@ -1910,6 +2268,13 @@
1910
2268
  "(google.api.field_behavior)": "OPTIONAL"
1911
2269
  }
1912
2270
  },
2271
+ "optimizeWaypointOrder": {
2272
+ "type": "bool",
2273
+ "id": 13,
2274
+ "options": {
2275
+ "(google.api.field_behavior)": "OPTIONAL"
2276
+ }
2277
+ },
1913
2278
  "requestedReferenceRoutes": {
1914
2279
  "rule": "repeated",
1915
2280
  "type": "ReferenceRoute",
@@ -1925,6 +2290,20 @@
1925
2290
  "options": {
1926
2291
  "(google.api.field_behavior)": "OPTIONAL"
1927
2292
  }
2293
+ },
2294
+ "trafficModel": {
2295
+ "type": "TrafficModel",
2296
+ "id": 18,
2297
+ "options": {
2298
+ "(google.api.field_behavior)": "OPTIONAL"
2299
+ }
2300
+ },
2301
+ "transitPreferences": {
2302
+ "type": "TransitPreferences",
2303
+ "id": 20,
2304
+ "options": {
2305
+ "(google.api.field_behavior)": "OPTIONAL"
2306
+ }
1928
2307
  }
1929
2308
  },
1930
2309
  "nested": {
@@ -1939,7 +2318,8 @@
1939
2318
  "EXTRA_COMPUTATION_UNSPECIFIED": 0,
1940
2319
  "TOLLS": 1,
1941
2320
  "FUEL_CONSUMPTION": 2,
1942
- "TRAFFIC_ON_POLYLINE": 3
2321
+ "TRAFFIC_ON_POLYLINE": 3,
2322
+ "HTML_FORMATTED_NAVIGATION_INSTRUCTIONS": 4
1943
2323
  }
1944
2324
  }
1945
2325
  }
@@ -2000,6 +2380,13 @@
2000
2380
  "(google.api.field_behavior)": "OPTIONAL"
2001
2381
  }
2002
2382
  },
2383
+ "arrivalTime": {
2384
+ "type": "google.protobuf.Timestamp",
2385
+ "id": 11,
2386
+ "options": {
2387
+ "(google.api.field_behavior)": "OPTIONAL"
2388
+ }
2389
+ },
2003
2390
  "languageCode": {
2004
2391
  "type": "string",
2005
2392
  "id": 6,
@@ -2021,6 +2408,20 @@
2021
2408
  "options": {
2022
2409
  "(google.api.field_behavior)": "OPTIONAL"
2023
2410
  }
2411
+ },
2412
+ "trafficModel": {
2413
+ "type": "TrafficModel",
2414
+ "id": 10,
2415
+ "options": {
2416
+ "(google.api.field_behavior)": "OPTIONAL"
2417
+ }
2418
+ },
2419
+ "transitPreferences": {
2420
+ "type": "TransitPreferences",
2421
+ "id": 12,
2422
+ "options": {
2423
+ "(google.api.field_behavior)": "OPTIONAL"
2424
+ }
2024
2425
  }
2025
2426
  },
2026
2427
  "nested": {
@@ -2116,6 +2517,32 @@
2116
2517
  "fallbackInfo": {
2117
2518
  "type": "FallbackInfo",
2118
2519
  "id": 8
2520
+ },
2521
+ "localizedValues": {
2522
+ "type": "LocalizedValues",
2523
+ "id": 10
2524
+ }
2525
+ },
2526
+ "nested": {
2527
+ "LocalizedValues": {
2528
+ "fields": {
2529
+ "distance": {
2530
+ "type": "google.type.LocalizedText",
2531
+ "id": 1
2532
+ },
2533
+ "duration": {
2534
+ "type": "google.type.LocalizedText",
2535
+ "id": 2
2536
+ },
2537
+ "staticDuration": {
2538
+ "type": "google.type.LocalizedText",
2539
+ "id": 3
2540
+ },
2541
+ "transitFare": {
2542
+ "type": "google.type.LocalizedText",
2543
+ "id": 4
2544
+ }
2545
+ }
2119
2546
  }
2120
2547
  }
2121
2548
  },
@@ -2134,6 +2561,46 @@
2134
2561
  "TRAFFIC_AWARE_OPTIMAL": 3
2135
2562
  }
2136
2563
  },
2564
+ "TrafficModel": {
2565
+ "values": {
2566
+ "TRAFFIC_MODEL_UNSPECIFIED": 0,
2567
+ "BEST_GUESS": 1,
2568
+ "PESSIMISTIC": 2,
2569
+ "OPTIMISTIC": 3
2570
+ }
2571
+ },
2572
+ "TransitPreferences": {
2573
+ "fields": {
2574
+ "allowedTravelModes": {
2575
+ "rule": "repeated",
2576
+ "type": "TransitTravelMode",
2577
+ "id": 1
2578
+ },
2579
+ "routingPreference": {
2580
+ "type": "TransitRoutingPreference",
2581
+ "id": 2
2582
+ }
2583
+ },
2584
+ "nested": {
2585
+ "TransitTravelMode": {
2586
+ "values": {
2587
+ "TRANSIT_TRAVEL_MODE_UNSPECIFIED": 0,
2588
+ "BUS": 1,
2589
+ "SUBWAY": 2,
2590
+ "TRAIN": 3,
2591
+ "LIGHT_RAIL": 4,
2592
+ "RAIL": 5
2593
+ }
2594
+ },
2595
+ "TransitRoutingPreference": {
2596
+ "values": {
2597
+ "TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED": 0,
2598
+ "LESS_WALKING": 1,
2599
+ "FEWER_TRANSFERS": 2
2600
+ }
2601
+ }
2602
+ }
2603
+ },
2137
2604
  "Units": {
2138
2605
  "values": {
2139
2606
  "UNITS_UNSPECIFIED": 0,