Routes Preferred API 目前仅适用于部分客户。如需了解详情,请
与销售人员联系。
  
        
 
       
     
  
  
  
    
  
  
  
    
      ComputeRoutesResponse
    
    
      
    
    
      
      使用集合让一切井井有条
    
    
      
      根据您的偏好保存内容并对其进行分类。
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
    
    
    
      
      
      
        
          
            
              | JSON 表示法 | 
            
          
          
            
              {
  "routes": [
    {
      object (Route)
    }
  ],
  "fallbackInfo": {
    object (FallbackInfo)
  }
} | 
            
          
        
      
      
        
          
            
            
          
          
            
              | 字段 | 
            
          
          
            
              routes[] | 
              
                 object (Route) 
                包含在指定 compute_alternatives_routes 时计算出的路线的数组(最多三个),否则仅包含一条路线。如果此数组包含多个条目,则第一个条目是最推荐的路线。如果数组为空,则表示找不到路线。 
               | 
            
            
              fallbackInfo | 
              
                 object (FallbackInfo) 
                在某些情况下,当服务器无法使用所有输入偏好设置计算出路线结果时,可能会回退到使用其他计算方法。使用回退模式时,此字段包含有关回退响应的详细信息。否则,此字段将未设置。 
               | 
            
          
        
      
    
  
  
  
  
 
  
    
    
      
       
    
    
  
  
  如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
  最后更新时间 (UTC):2025-08-31。
  
  
  
    
      [null,null,["最后更新时间 (UTC):2025-08-31。"],[],["The `ComputeRoutes` response includes a `routes` array, which contains computed routes. The array can hold up to three alternative routes, with the first being the most recommended. If no routes are found, the array is empty. A `fallbackInfo` object is also included in certain cases when the server uses a different computation method due to the inability to compute routes with the input preferences. Otherwise the object will be unset.\n"]]