Điểm trung gian là các điểm trung gian không phải điểm cuối tạo nên một tuyến đường. Bạn định cấu hình các yêu cầu đó bằng trường yêu cầu intermediates. Theo mặc định, các điểm trung gian được dùng để dừng đón và trả khách, nhưng bạn có thể chỉ định rằng một điểm trung gian chỉ dùng để đi qua.
Định cấu hình điểm trung gian chuyển tiếp
Bạn có thể định cấu hình một điểm trung gian để làm điểm trung gian chuyển tiếp bằng cách đặt trường via.
Ví dụ:
Ví dụ sau đây minh hoạ cách đánh dấu một điểm trung gian là điểm trung gian đi qua.
[null,null,["Cập nhật lần gần đây nhất: 2024-11-23 UTC."],[[["Intermediate waypoints are used for pick-up/drop-off by default, but can be configured as pass-through points using the `intermediates` request field."],["A pass-through waypoint is set by defining the `via` field as `true` within the waypoint's configuration."],["Routes containing an origin, pass-through waypoint, and destination will only have one leg, connecting the origin and destination while passing through the intermediate point."]]],["Intermediate waypoints are configurable route points using the `intermediates` field. They can be designated as stops for pickup/drop-off or as pass-through points. To configure a pass-through waypoint, set the `via` field to `true`. A route with a pass-through waypoint includes only one route leg connecting the origin to the destination. The `location` field is required with the lat/lng values for the waypoint.\n"]]