{"via": boolean,"vehicleStopover": boolean,"sideOfRoad": boolean,// Union field location_type can be only one of the following:"location": {object (Location)},"placeId": string,"address": string// End of list of possible types for union field location_type.}
字段
via
boolean
将此航点标记为里程碑,而不是停止点。对于请求中的每个非经停点路径点,响应都会将一个条目附加到 legs 数组,以提供该行程相应路段上的经停点的详细信息。如果您希望路线通过此航点而不停留,请将此值设置为 true。经由路径点不会导致向 legs 数组添加条目,但会将旅程路线改为途经该路径点。您只能对中间航点设置此值。如果您在终点航点上设置此字段,则请求将失败。如果 ComputeRoutesRequest.optimize_waypoint_order 设为 true,则此字段不能设为 true;否则,请求将失败。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-11-27。"],[[["Waypoints define the start, end, and intermediate points of a route."],["Waypoints can be specified using geographic coordinates, Place IDs, or addresses."],["The `via` field allows a waypoint to be a pass-through point without stopping."],["`vehicleStopover` is used for pickup/drop-off optimization, while `sideOfRoad` indicates preferred stopping side."]]],[]]