{"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。Via 航点不会导致将条目添加到 legs 数组,但它们确实会为行程提供途经航点的路线。您只能对中间航点设置此值。如果您在终端航点上设置此字段,则请求会失败。如果 ComputeRoutesRequest.optimize_waypoint_order 设置为 true,则此字段不能设置为 true;否则,请求会失败。