@googlemaps/routing 0.3.1 → 0.4.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.
@@ -20,6 +20,109 @@ export namespace google {
20
20
  /** Namespace protobuf. */
21
21
  namespace protobuf {
22
22
 
23
+ /** Properties of an Any. */
24
+ interface IAny {
25
+
26
+ /** Any type_url */
27
+ type_url?: (string|null);
28
+
29
+ /** Any value */
30
+ value?: (Uint8Array|string|null);
31
+ }
32
+
33
+ /** Represents an Any. */
34
+ class Any implements IAny {
35
+
36
+ /**
37
+ * Constructs a new Any.
38
+ * @param [properties] Properties to set
39
+ */
40
+ constructor(properties?: google.protobuf.IAny);
41
+
42
+ /** Any type_url. */
43
+ public type_url: string;
44
+
45
+ /** Any value. */
46
+ public value: (Uint8Array|string);
47
+
48
+ /**
49
+ * Creates a new Any instance using the specified properties.
50
+ * @param [properties] Properties to set
51
+ * @returns Any instance
52
+ */
53
+ public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
54
+
55
+ /**
56
+ * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
57
+ * @param message Any message or plain object to encode
58
+ * @param [writer] Writer to encode to
59
+ * @returns Writer
60
+ */
61
+ public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
62
+
63
+ /**
64
+ * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
65
+ * @param message Any message or plain object to encode
66
+ * @param [writer] Writer to encode to
67
+ * @returns Writer
68
+ */
69
+ public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
70
+
71
+ /**
72
+ * Decodes an Any message from the specified reader or buffer.
73
+ * @param reader Reader or buffer to decode from
74
+ * @param [length] Message length if known beforehand
75
+ * @returns Any
76
+ * @throws {Error} If the payload is not a reader or valid buffer
77
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
78
+ */
79
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
80
+
81
+ /**
82
+ * Decodes an Any message from the specified reader or buffer, length delimited.
83
+ * @param reader Reader or buffer to decode from
84
+ * @returns Any
85
+ * @throws {Error} If the payload is not a reader or valid buffer
86
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
87
+ */
88
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
89
+
90
+ /**
91
+ * Verifies an Any message.
92
+ * @param message Plain object to verify
93
+ * @returns `null` if valid, otherwise the reason why it is not
94
+ */
95
+ public static verify(message: { [k: string]: any }): (string|null);
96
+
97
+ /**
98
+ * Creates an Any message from a plain object. Also converts values to their respective internal types.
99
+ * @param object Plain object
100
+ * @returns Any
101
+ */
102
+ public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
103
+
104
+ /**
105
+ * Creates a plain object from an Any message. Also converts values to other types if specified.
106
+ * @param message Any
107
+ * @param [options] Conversion options
108
+ * @returns Plain object
109
+ */
110
+ public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
111
+
112
+ /**
113
+ * Converts this Any to JSON.
114
+ * @returns JSON object
115
+ */
116
+ public toJSON(): { [k: string]: any };
117
+
118
+ /**
119
+ * Gets the default type url for Any
120
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
121
+ * @returns The default type url
122
+ */
123
+ public static getTypeUrl(typeUrlPrefix?: string): string;
124
+ }
125
+
23
126
  /** Properties of a DoubleValue. */
24
127
  interface IDoubleValue {
25
128
 
@@ -4812,109 +4915,6 @@ export namespace google {
4812
4915
  */
4813
4916
  public static getTypeUrl(typeUrlPrefix?: string): string;
4814
4917
  }
4815
-
4816
- /** Properties of an Any. */
4817
- interface IAny {
4818
-
4819
- /** Any type_url */
4820
- type_url?: (string|null);
4821
-
4822
- /** Any value */
4823
- value?: (Uint8Array|string|null);
4824
- }
4825
-
4826
- /** Represents an Any. */
4827
- class Any implements IAny {
4828
-
4829
- /**
4830
- * Constructs a new Any.
4831
- * @param [properties] Properties to set
4832
- */
4833
- constructor(properties?: google.protobuf.IAny);
4834
-
4835
- /** Any type_url. */
4836
- public type_url: string;
4837
-
4838
- /** Any value. */
4839
- public value: (Uint8Array|string);
4840
-
4841
- /**
4842
- * Creates a new Any instance using the specified properties.
4843
- * @param [properties] Properties to set
4844
- * @returns Any instance
4845
- */
4846
- public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
4847
-
4848
- /**
4849
- * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
4850
- * @param message Any message or plain object to encode
4851
- * @param [writer] Writer to encode to
4852
- * @returns Writer
4853
- */
4854
- public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
4855
-
4856
- /**
4857
- * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
4858
- * @param message Any message or plain object to encode
4859
- * @param [writer] Writer to encode to
4860
- * @returns Writer
4861
- */
4862
- public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
4863
-
4864
- /**
4865
- * Decodes an Any message from the specified reader or buffer.
4866
- * @param reader Reader or buffer to decode from
4867
- * @param [length] Message length if known beforehand
4868
- * @returns Any
4869
- * @throws {Error} If the payload is not a reader or valid buffer
4870
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
4871
- */
4872
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
4873
-
4874
- /**
4875
- * Decodes an Any message from the specified reader or buffer, length delimited.
4876
- * @param reader Reader or buffer to decode from
4877
- * @returns Any
4878
- * @throws {Error} If the payload is not a reader or valid buffer
4879
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
4880
- */
4881
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
4882
-
4883
- /**
4884
- * Verifies an Any message.
4885
- * @param message Plain object to verify
4886
- * @returns `null` if valid, otherwise the reason why it is not
4887
- */
4888
- public static verify(message: { [k: string]: any }): (string|null);
4889
-
4890
- /**
4891
- * Creates an Any message from a plain object. Also converts values to their respective internal types.
4892
- * @param object Plain object
4893
- * @returns Any
4894
- */
4895
- public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
4896
-
4897
- /**
4898
- * Creates a plain object from an Any message. Also converts values to other types if specified.
4899
- * @param message Any
4900
- * @param [options] Conversion options
4901
- * @returns Plain object
4902
- */
4903
- public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
4904
-
4905
- /**
4906
- * Converts this Any to JSON.
4907
- * @returns JSON object
4908
- */
4909
- public toJSON(): { [k: string]: any };
4910
-
4911
- /**
4912
- * Gets the default type url for Any
4913
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4914
- * @returns The default type url
4915
- */
4916
- public static getTypeUrl(typeUrlPrefix?: string): string;
4917
- }
4918
4918
  }
4919
4919
 
4920
4920
  /** Namespace geo. */
@@ -5370,119 +5370,352 @@ export namespace google {
5370
5370
  FALLBACK_TRAFFIC_AWARE = 2
5371
5371
  }
5372
5372
 
5373
- /** Properties of a Location. */
5374
- interface ILocation {
5373
+ /** Properties of a GeocodingResults. */
5374
+ interface IGeocodingResults {
5375
5375
 
5376
- /** Location latLng */
5377
- latLng?: (google.type.ILatLng|null);
5376
+ /** GeocodingResults origin */
5377
+ origin?: (google.maps.routing.v2.IGeocodedWaypoint|null);
5378
5378
 
5379
- /** Location heading */
5380
- heading?: (google.protobuf.IInt32Value|null);
5379
+ /** GeocodingResults destination */
5380
+ destination?: (google.maps.routing.v2.IGeocodedWaypoint|null);
5381
+
5382
+ /** GeocodingResults intermediates */
5383
+ intermediates?: (google.maps.routing.v2.IGeocodedWaypoint[]|null);
5381
5384
  }
5382
5385
 
5383
- /** Represents a Location. */
5384
- class Location implements ILocation {
5386
+ /** Represents a GeocodingResults. */
5387
+ class GeocodingResults implements IGeocodingResults {
5385
5388
 
5386
5389
  /**
5387
- * Constructs a new Location.
5390
+ * Constructs a new GeocodingResults.
5388
5391
  * @param [properties] Properties to set
5389
5392
  */
5390
- constructor(properties?: google.maps.routing.v2.ILocation);
5393
+ constructor(properties?: google.maps.routing.v2.IGeocodingResults);
5391
5394
 
5392
- /** Location latLng. */
5393
- public latLng?: (google.type.ILatLng|null);
5395
+ /** GeocodingResults origin. */
5396
+ public origin?: (google.maps.routing.v2.IGeocodedWaypoint|null);
5394
5397
 
5395
- /** Location heading. */
5396
- public heading?: (google.protobuf.IInt32Value|null);
5398
+ /** GeocodingResults destination. */
5399
+ public destination?: (google.maps.routing.v2.IGeocodedWaypoint|null);
5400
+
5401
+ /** GeocodingResults intermediates. */
5402
+ public intermediates: google.maps.routing.v2.IGeocodedWaypoint[];
5397
5403
 
5398
5404
  /**
5399
- * Creates a new Location instance using the specified properties.
5405
+ * Creates a new GeocodingResults instance using the specified properties.
5400
5406
  * @param [properties] Properties to set
5401
- * @returns Location instance
5407
+ * @returns GeocodingResults instance
5402
5408
  */
5403
- public static create(properties?: google.maps.routing.v2.ILocation): google.maps.routing.v2.Location;
5409
+ public static create(properties?: google.maps.routing.v2.IGeocodingResults): google.maps.routing.v2.GeocodingResults;
5404
5410
 
5405
5411
  /**
5406
- * Encodes the specified Location message. Does not implicitly {@link google.maps.routing.v2.Location.verify|verify} messages.
5407
- * @param message Location message or plain object to encode
5412
+ * Encodes the specified GeocodingResults message. Does not implicitly {@link google.maps.routing.v2.GeocodingResults.verify|verify} messages.
5413
+ * @param message GeocodingResults message or plain object to encode
5408
5414
  * @param [writer] Writer to encode to
5409
5415
  * @returns Writer
5410
5416
  */
5411
- public static encode(message: google.maps.routing.v2.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
5417
+ public static encode(message: google.maps.routing.v2.IGeocodingResults, writer?: $protobuf.Writer): $protobuf.Writer;
5412
5418
 
5413
5419
  /**
5414
- * Encodes the specified Location message, length delimited. Does not implicitly {@link google.maps.routing.v2.Location.verify|verify} messages.
5415
- * @param message Location message or plain object to encode
5420
+ * Encodes the specified GeocodingResults message, length delimited. Does not implicitly {@link google.maps.routing.v2.GeocodingResults.verify|verify} messages.
5421
+ * @param message GeocodingResults message or plain object to encode
5416
5422
  * @param [writer] Writer to encode to
5417
5423
  * @returns Writer
5418
5424
  */
5419
- public static encodeDelimited(message: google.maps.routing.v2.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
5425
+ public static encodeDelimited(message: google.maps.routing.v2.IGeocodingResults, writer?: $protobuf.Writer): $protobuf.Writer;
5420
5426
 
5421
5427
  /**
5422
- * Decodes a Location message from the specified reader or buffer.
5428
+ * Decodes a GeocodingResults message from the specified reader or buffer.
5423
5429
  * @param reader Reader or buffer to decode from
5424
5430
  * @param [length] Message length if known beforehand
5425
- * @returns Location
5431
+ * @returns GeocodingResults
5426
5432
  * @throws {Error} If the payload is not a reader or valid buffer
5427
5433
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5428
5434
  */
5429
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.Location;
5435
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.GeocodingResults;
5430
5436
 
5431
5437
  /**
5432
- * Decodes a Location message from the specified reader or buffer, length delimited.
5438
+ * Decodes a GeocodingResults message from the specified reader or buffer, length delimited.
5433
5439
  * @param reader Reader or buffer to decode from
5434
- * @returns Location
5440
+ * @returns GeocodingResults
5435
5441
  * @throws {Error} If the payload is not a reader or valid buffer
5436
5442
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5437
5443
  */
5438
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.Location;
5444
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.GeocodingResults;
5439
5445
 
5440
5446
  /**
5441
- * Verifies a Location message.
5447
+ * Verifies a GeocodingResults message.
5442
5448
  * @param message Plain object to verify
5443
5449
  * @returns `null` if valid, otherwise the reason why it is not
5444
5450
  */
5445
5451
  public static verify(message: { [k: string]: any }): (string|null);
5446
5452
 
5447
5453
  /**
5448
- * Creates a Location message from a plain object. Also converts values to their respective internal types.
5454
+ * Creates a GeocodingResults message from a plain object. Also converts values to their respective internal types.
5449
5455
  * @param object Plain object
5450
- * @returns Location
5456
+ * @returns GeocodingResults
5451
5457
  */
5452
- public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.Location;
5458
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.GeocodingResults;
5453
5459
 
5454
5460
  /**
5455
- * Creates a plain object from a Location message. Also converts values to other types if specified.
5456
- * @param message Location
5461
+ * Creates a plain object from a GeocodingResults message. Also converts values to other types if specified.
5462
+ * @param message GeocodingResults
5457
5463
  * @param [options] Conversion options
5458
5464
  * @returns Plain object
5459
5465
  */
5460
- public static toObject(message: google.maps.routing.v2.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
5466
+ public static toObject(message: google.maps.routing.v2.GeocodingResults, options?: $protobuf.IConversionOptions): { [k: string]: any };
5461
5467
 
5462
5468
  /**
5463
- * Converts this Location to JSON.
5469
+ * Converts this GeocodingResults to JSON.
5464
5470
  * @returns JSON object
5465
5471
  */
5466
5472
  public toJSON(): { [k: string]: any };
5467
5473
 
5468
5474
  /**
5469
- * Gets the default type url for Location
5475
+ * Gets the default type url for GeocodingResults
5470
5476
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5471
5477
  * @returns The default type url
5472
5478
  */
5473
5479
  public static getTypeUrl(typeUrlPrefix?: string): string;
5474
5480
  }
5475
5481
 
5476
- /** Maneuver enum. */
5477
- enum Maneuver {
5478
- MANEUVER_UNSPECIFIED = 0,
5479
- TURN_SLIGHT_LEFT = 1,
5480
- TURN_SHARP_LEFT = 2,
5481
- UTURN_LEFT = 3,
5482
- TURN_LEFT = 4,
5483
- TURN_SLIGHT_RIGHT = 5,
5484
- TURN_SHARP_RIGHT = 6,
5485
- UTURN_RIGHT = 7,
5482
+ /** Properties of a GeocodedWaypoint. */
5483
+ interface IGeocodedWaypoint {
5484
+
5485
+ /** GeocodedWaypoint geocoderStatus */
5486
+ geocoderStatus?: (google.rpc.IStatus|null);
5487
+
5488
+ /** GeocodedWaypoint intermediateWaypointRequestIndex */
5489
+ intermediateWaypointRequestIndex?: (number|null);
5490
+
5491
+ /** GeocodedWaypoint type */
5492
+ type?: (string[]|null);
5493
+
5494
+ /** GeocodedWaypoint partialMatch */
5495
+ partialMatch?: (boolean|null);
5496
+
5497
+ /** GeocodedWaypoint placeId */
5498
+ placeId?: (string|null);
5499
+ }
5500
+
5501
+ /** Represents a GeocodedWaypoint. */
5502
+ class GeocodedWaypoint implements IGeocodedWaypoint {
5503
+
5504
+ /**
5505
+ * Constructs a new GeocodedWaypoint.
5506
+ * @param [properties] Properties to set
5507
+ */
5508
+ constructor(properties?: google.maps.routing.v2.IGeocodedWaypoint);
5509
+
5510
+ /** GeocodedWaypoint geocoderStatus. */
5511
+ public geocoderStatus?: (google.rpc.IStatus|null);
5512
+
5513
+ /** GeocodedWaypoint intermediateWaypointRequestIndex. */
5514
+ public intermediateWaypointRequestIndex?: (number|null);
5515
+
5516
+ /** GeocodedWaypoint type. */
5517
+ public type: string[];
5518
+
5519
+ /** GeocodedWaypoint partialMatch. */
5520
+ public partialMatch: boolean;
5521
+
5522
+ /** GeocodedWaypoint placeId. */
5523
+ public placeId: string;
5524
+
5525
+ /** GeocodedWaypoint _intermediateWaypointRequestIndex. */
5526
+ public _intermediateWaypointRequestIndex?: "intermediateWaypointRequestIndex";
5527
+
5528
+ /**
5529
+ * Creates a new GeocodedWaypoint instance using the specified properties.
5530
+ * @param [properties] Properties to set
5531
+ * @returns GeocodedWaypoint instance
5532
+ */
5533
+ public static create(properties?: google.maps.routing.v2.IGeocodedWaypoint): google.maps.routing.v2.GeocodedWaypoint;
5534
+
5535
+ /**
5536
+ * Encodes the specified GeocodedWaypoint message. Does not implicitly {@link google.maps.routing.v2.GeocodedWaypoint.verify|verify} messages.
5537
+ * @param message GeocodedWaypoint message or plain object to encode
5538
+ * @param [writer] Writer to encode to
5539
+ * @returns Writer
5540
+ */
5541
+ public static encode(message: google.maps.routing.v2.IGeocodedWaypoint, writer?: $protobuf.Writer): $protobuf.Writer;
5542
+
5543
+ /**
5544
+ * Encodes the specified GeocodedWaypoint message, length delimited. Does not implicitly {@link google.maps.routing.v2.GeocodedWaypoint.verify|verify} messages.
5545
+ * @param message GeocodedWaypoint message or plain object to encode
5546
+ * @param [writer] Writer to encode to
5547
+ * @returns Writer
5548
+ */
5549
+ public static encodeDelimited(message: google.maps.routing.v2.IGeocodedWaypoint, writer?: $protobuf.Writer): $protobuf.Writer;
5550
+
5551
+ /**
5552
+ * Decodes a GeocodedWaypoint message from the specified reader or buffer.
5553
+ * @param reader Reader or buffer to decode from
5554
+ * @param [length] Message length if known beforehand
5555
+ * @returns GeocodedWaypoint
5556
+ * @throws {Error} If the payload is not a reader or valid buffer
5557
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5558
+ */
5559
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.GeocodedWaypoint;
5560
+
5561
+ /**
5562
+ * Decodes a GeocodedWaypoint message from the specified reader or buffer, length delimited.
5563
+ * @param reader Reader or buffer to decode from
5564
+ * @returns GeocodedWaypoint
5565
+ * @throws {Error} If the payload is not a reader or valid buffer
5566
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5567
+ */
5568
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.GeocodedWaypoint;
5569
+
5570
+ /**
5571
+ * Verifies a GeocodedWaypoint message.
5572
+ * @param message Plain object to verify
5573
+ * @returns `null` if valid, otherwise the reason why it is not
5574
+ */
5575
+ public static verify(message: { [k: string]: any }): (string|null);
5576
+
5577
+ /**
5578
+ * Creates a GeocodedWaypoint message from a plain object. Also converts values to their respective internal types.
5579
+ * @param object Plain object
5580
+ * @returns GeocodedWaypoint
5581
+ */
5582
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.GeocodedWaypoint;
5583
+
5584
+ /**
5585
+ * Creates a plain object from a GeocodedWaypoint message. Also converts values to other types if specified.
5586
+ * @param message GeocodedWaypoint
5587
+ * @param [options] Conversion options
5588
+ * @returns Plain object
5589
+ */
5590
+ public static toObject(message: google.maps.routing.v2.GeocodedWaypoint, options?: $protobuf.IConversionOptions): { [k: string]: any };
5591
+
5592
+ /**
5593
+ * Converts this GeocodedWaypoint to JSON.
5594
+ * @returns JSON object
5595
+ */
5596
+ public toJSON(): { [k: string]: any };
5597
+
5598
+ /**
5599
+ * Gets the default type url for GeocodedWaypoint
5600
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5601
+ * @returns The default type url
5602
+ */
5603
+ public static getTypeUrl(typeUrlPrefix?: string): string;
5604
+ }
5605
+
5606
+ /** Properties of a Location. */
5607
+ interface ILocation {
5608
+
5609
+ /** Location latLng */
5610
+ latLng?: (google.type.ILatLng|null);
5611
+
5612
+ /** Location heading */
5613
+ heading?: (google.protobuf.IInt32Value|null);
5614
+ }
5615
+
5616
+ /** Represents a Location. */
5617
+ class Location implements ILocation {
5618
+
5619
+ /**
5620
+ * Constructs a new Location.
5621
+ * @param [properties] Properties to set
5622
+ */
5623
+ constructor(properties?: google.maps.routing.v2.ILocation);
5624
+
5625
+ /** Location latLng. */
5626
+ public latLng?: (google.type.ILatLng|null);
5627
+
5628
+ /** Location heading. */
5629
+ public heading?: (google.protobuf.IInt32Value|null);
5630
+
5631
+ /**
5632
+ * Creates a new Location instance using the specified properties.
5633
+ * @param [properties] Properties to set
5634
+ * @returns Location instance
5635
+ */
5636
+ public static create(properties?: google.maps.routing.v2.ILocation): google.maps.routing.v2.Location;
5637
+
5638
+ /**
5639
+ * Encodes the specified Location message. Does not implicitly {@link google.maps.routing.v2.Location.verify|verify} messages.
5640
+ * @param message Location message or plain object to encode
5641
+ * @param [writer] Writer to encode to
5642
+ * @returns Writer
5643
+ */
5644
+ public static encode(message: google.maps.routing.v2.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
5645
+
5646
+ /**
5647
+ * Encodes the specified Location message, length delimited. Does not implicitly {@link google.maps.routing.v2.Location.verify|verify} messages.
5648
+ * @param message Location message or plain object to encode
5649
+ * @param [writer] Writer to encode to
5650
+ * @returns Writer
5651
+ */
5652
+ public static encodeDelimited(message: google.maps.routing.v2.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
5653
+
5654
+ /**
5655
+ * Decodes a Location message from the specified reader or buffer.
5656
+ * @param reader Reader or buffer to decode from
5657
+ * @param [length] Message length if known beforehand
5658
+ * @returns Location
5659
+ * @throws {Error} If the payload is not a reader or valid buffer
5660
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5661
+ */
5662
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.Location;
5663
+
5664
+ /**
5665
+ * Decodes a Location message from the specified reader or buffer, length delimited.
5666
+ * @param reader Reader or buffer to decode from
5667
+ * @returns Location
5668
+ * @throws {Error} If the payload is not a reader or valid buffer
5669
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5670
+ */
5671
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.Location;
5672
+
5673
+ /**
5674
+ * Verifies a Location message.
5675
+ * @param message Plain object to verify
5676
+ * @returns `null` if valid, otherwise the reason why it is not
5677
+ */
5678
+ public static verify(message: { [k: string]: any }): (string|null);
5679
+
5680
+ /**
5681
+ * Creates a Location message from a plain object. Also converts values to their respective internal types.
5682
+ * @param object Plain object
5683
+ * @returns Location
5684
+ */
5685
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.Location;
5686
+
5687
+ /**
5688
+ * Creates a plain object from a Location message. Also converts values to other types if specified.
5689
+ * @param message Location
5690
+ * @param [options] Conversion options
5691
+ * @returns Plain object
5692
+ */
5693
+ public static toObject(message: google.maps.routing.v2.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
5694
+
5695
+ /**
5696
+ * Converts this Location to JSON.
5697
+ * @returns JSON object
5698
+ */
5699
+ public toJSON(): { [k: string]: any };
5700
+
5701
+ /**
5702
+ * Gets the default type url for Location
5703
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5704
+ * @returns The default type url
5705
+ */
5706
+ public static getTypeUrl(typeUrlPrefix?: string): string;
5707
+ }
5708
+
5709
+ /** Maneuver enum. */
5710
+ enum Maneuver {
5711
+ MANEUVER_UNSPECIFIED = 0,
5712
+ TURN_SLIGHT_LEFT = 1,
5713
+ TURN_SHARP_LEFT = 2,
5714
+ UTURN_LEFT = 3,
5715
+ TURN_LEFT = 4,
5716
+ TURN_SLIGHT_RIGHT = 5,
5717
+ TURN_SHARP_RIGHT = 6,
5718
+ UTURN_RIGHT = 7,
5486
5719
  TURN_RIGHT = 8,
5487
5720
  STRAIGHT = 9,
5488
5721
  RAMP_LEFT = 10,
@@ -7292,6 +7525,9 @@ export namespace google {
7292
7525
 
7293
7526
  /** ComputeRoutesResponse fallbackInfo */
7294
7527
  fallbackInfo?: (google.maps.routing.v2.IFallbackInfo|null);
7528
+
7529
+ /** ComputeRoutesResponse geocodingResults */
7530
+ geocodingResults?: (google.maps.routing.v2.IGeocodingResults|null);
7295
7531
  }
7296
7532
 
7297
7533
  /** Represents a ComputeRoutesResponse. */
@@ -7309,6 +7545,9 @@ export namespace google {
7309
7545
  /** ComputeRoutesResponse fallbackInfo. */
7310
7546
  public fallbackInfo?: (google.maps.routing.v2.IFallbackInfo|null);
7311
7547
 
7548
+ /** ComputeRoutesResponse geocodingResults. */
7549
+ public geocodingResults?: (google.maps.routing.v2.IGeocodingResults|null);
7550
+
7312
7551
  /**
7313
7552
  * Creates a new ComputeRoutesResponse instance using the specified properties.
7314
7553
  * @param [properties] Properties to set
@@ -7905,6 +8144,9 @@ export namespace google {
7905
8144
  /** Waypoint placeId */
7906
8145
  placeId?: (string|null);
7907
8146
 
8147
+ /** Waypoint address */
8148
+ address?: (string|null);
8149
+
7908
8150
  /** Waypoint via */
7909
8151
  via?: (boolean|null);
7910
8152
 
@@ -7930,6 +8172,9 @@ export namespace google {
7930
8172
  /** Waypoint placeId. */
7931
8173
  public placeId?: (string|null);
7932
8174
 
8175
+ /** Waypoint address. */
8176
+ public address?: (string|null);
8177
+
7933
8178
  /** Waypoint via. */
7934
8179
  public via: boolean;
7935
8180
 
@@ -7940,7 +8185,7 @@ export namespace google {
7940
8185
  public sideOfRoad: boolean;
7941
8186
 
7942
8187
  /** Waypoint locationType. */
7943
- public locationType?: ("location"|"placeId");
8188
+ public locationType?: ("location"|"placeId"|"address");
7944
8189
 
7945
8190
  /**
7946
8191
  * Creates a new Waypoint instance using the specified properties.
@@ -8023,6 +8268,119 @@ export namespace google {
8023
8268
  }
8024
8269
  }
8025
8270
 
8271
+ /** Namespace rpc. */
8272
+ namespace rpc {
8273
+
8274
+ /** Properties of a Status. */
8275
+ interface IStatus {
8276
+
8277
+ /** Status code */
8278
+ code?: (number|null);
8279
+
8280
+ /** Status message */
8281
+ message?: (string|null);
8282
+
8283
+ /** Status details */
8284
+ details?: (google.protobuf.IAny[]|null);
8285
+ }
8286
+
8287
+ /** Represents a Status. */
8288
+ class Status implements IStatus {
8289
+
8290
+ /**
8291
+ * Constructs a new Status.
8292
+ * @param [properties] Properties to set
8293
+ */
8294
+ constructor(properties?: google.rpc.IStatus);
8295
+
8296
+ /** Status code. */
8297
+ public code: number;
8298
+
8299
+ /** Status message. */
8300
+ public message: string;
8301
+
8302
+ /** Status details. */
8303
+ public details: google.protobuf.IAny[];
8304
+
8305
+ /**
8306
+ * Creates a new Status instance using the specified properties.
8307
+ * @param [properties] Properties to set
8308
+ * @returns Status instance
8309
+ */
8310
+ public static create(properties?: google.rpc.IStatus): google.rpc.Status;
8311
+
8312
+ /**
8313
+ * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
8314
+ * @param message Status message or plain object to encode
8315
+ * @param [writer] Writer to encode to
8316
+ * @returns Writer
8317
+ */
8318
+ public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
8319
+
8320
+ /**
8321
+ * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
8322
+ * @param message Status message or plain object to encode
8323
+ * @param [writer] Writer to encode to
8324
+ * @returns Writer
8325
+ */
8326
+ public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
8327
+
8328
+ /**
8329
+ * Decodes a Status message from the specified reader or buffer.
8330
+ * @param reader Reader or buffer to decode from
8331
+ * @param [length] Message length if known beforehand
8332
+ * @returns Status
8333
+ * @throws {Error} If the payload is not a reader or valid buffer
8334
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8335
+ */
8336
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
8337
+
8338
+ /**
8339
+ * Decodes a Status message from the specified reader or buffer, length delimited.
8340
+ * @param reader Reader or buffer to decode from
8341
+ * @returns Status
8342
+ * @throws {Error} If the payload is not a reader or valid buffer
8343
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8344
+ */
8345
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
8346
+
8347
+ /**
8348
+ * Verifies a Status message.
8349
+ * @param message Plain object to verify
8350
+ * @returns `null` if valid, otherwise the reason why it is not
8351
+ */
8352
+ public static verify(message: { [k: string]: any }): (string|null);
8353
+
8354
+ /**
8355
+ * Creates a Status message from a plain object. Also converts values to their respective internal types.
8356
+ * @param object Plain object
8357
+ * @returns Status
8358
+ */
8359
+ public static fromObject(object: { [k: string]: any }): google.rpc.Status;
8360
+
8361
+ /**
8362
+ * Creates a plain object from a Status message. Also converts values to other types if specified.
8363
+ * @param message Status
8364
+ * @param [options] Conversion options
8365
+ * @returns Plain object
8366
+ */
8367
+ public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
8368
+
8369
+ /**
8370
+ * Converts this Status to JSON.
8371
+ * @returns JSON object
8372
+ */
8373
+ public toJSON(): { [k: string]: any };
8374
+
8375
+ /**
8376
+ * Gets the default type url for Status
8377
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
8378
+ * @returns The default type url
8379
+ */
8380
+ public static getTypeUrl(typeUrlPrefix?: string): string;
8381
+ }
8382
+ }
8383
+
8026
8384
  /** Namespace api. */
8027
8385
  namespace api {
8028
8386
 
@@ -9840,117 +10198,4 @@ export namespace google {
9840
10198
  NON_EMPTY_DEFAULT = 7
9841
10199
  }
9842
10200
  }
9843
-
9844
- /** Namespace rpc. */
9845
- namespace rpc {
9846
-
9847
- /** Properties of a Status. */
9848
- interface IStatus {
9849
-
9850
- /** Status code */
9851
- code?: (number|null);
9852
-
9853
- /** Status message */
9854
- message?: (string|null);
9855
-
9856
- /** Status details */
9857
- details?: (google.protobuf.IAny[]|null);
9858
- }
9859
-
9860
- /** Represents a Status. */
9861
- class Status implements IStatus {
9862
-
9863
- /**
9864
- * Constructs a new Status.
9865
- * @param [properties] Properties to set
9866
- */
9867
- constructor(properties?: google.rpc.IStatus);
9868
-
9869
- /** Status code. */
9870
- public code: number;
9871
-
9872
- /** Status message. */
9873
- public message: string;
9874
-
9875
- /** Status details. */
9876
- public details: google.protobuf.IAny[];
9877
-
9878
- /**
9879
- * Creates a new Status instance using the specified properties.
9880
- * @param [properties] Properties to set
9881
- * @returns Status instance
9882
- */
9883
- public static create(properties?: google.rpc.IStatus): google.rpc.Status;
9884
-
9885
- /**
9886
- * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
9887
- * @param message Status message or plain object to encode
9888
- * @param [writer] Writer to encode to
9889
- * @returns Writer
9890
- */
9891
- public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
9892
-
9893
- /**
9894
- * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
9895
- * @param message Status message or plain object to encode
9896
- * @param [writer] Writer to encode to
9897
- * @returns Writer
9898
- */
9899
- public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
9900
-
9901
- /**
9902
- * Decodes a Status message from the specified reader or buffer.
9903
- * @param reader Reader or buffer to decode from
9904
- * @param [length] Message length if known beforehand
9905
- * @returns Status
9906
- * @throws {Error} If the payload is not a reader or valid buffer
9907
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
9908
- */
9909
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
9910
-
9911
- /**
9912
- * Decodes a Status message from the specified reader or buffer, length delimited.
9913
- * @param reader Reader or buffer to decode from
9914
- * @returns Status
9915
- * @throws {Error} If the payload is not a reader or valid buffer
9916
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
9917
- */
9918
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
9919
-
9920
- /**
9921
- * Verifies a Status message.
9922
- * @param message Plain object to verify
9923
- * @returns `null` if valid, otherwise the reason why it is not
9924
- */
9925
- public static verify(message: { [k: string]: any }): (string|null);
9926
-
9927
- /**
9928
- * Creates a Status message from a plain object. Also converts values to their respective internal types.
9929
- * @param object Plain object
9930
- * @returns Status
9931
- */
9932
- public static fromObject(object: { [k: string]: any }): google.rpc.Status;
9933
-
9934
- /**
9935
- * Creates a plain object from a Status message. Also converts values to other types if specified.
9936
- * @param message Status
9937
- * @param [options] Conversion options
9938
- * @returns Plain object
9939
- */
9940
- public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
9941
-
9942
- /**
9943
- * Converts this Status to JSON.
9944
- * @returns JSON object
9945
- */
9946
- public toJSON(): { [k: string]: any };
9947
-
9948
- /**
9949
- * Gets the default type url for Status
9950
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9951
- * @returns The default type url
9952
- */
9953
- public static getTypeUrl(typeUrlPrefix?: string): string;
9954
- }
9955
- }
9956
10201
  }