| 限定符和类型 | 方法和说明 |
|---|---|
GoogleFlightsRequest |
GoogleFlightsRequest.setAdults(String adults)
设置定义成人数量。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setArrivalId(String arrivalId)
设置定义到达机场代码或地点 kgmid。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setBags(String bags)
设置定义随身行李数量。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setChildren(String children)
设置定义儿童数量。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setCurrency(String currency)
设置定义返回价格的货币。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setDeepSearch(String deepSearch)
设置设置为 true 以启用深度搜索,这可能会产生更好的结果,但响应时间更长。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setDepartureId(String departureId)
设置定义出发机场代码或地点 kgmid。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setDepartureToken(String departureToken)
设置用于选择航班并获取返程航班(对于往返航班)或行程下一段的航班(对于多城市航班)。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setEmissions(String emissions)
设置定义航班的排放水平。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setExcludeAirlines(String excludeAirlines)
设置定义要排除的航空公司代码。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setExcludeBasic(String excludeBasic)
设置设置为 true 以排除基础经济舱结果。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setExcludeConns(String excludeConns)
设置定义要排除的中转机场代码。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setGl(String gl)
设置定义 Google Flights 搜索要使用的国家/地区。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setHl(String hl)
设置定义 Google Flights 搜索要使用的语言。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setIncludeAirlines(String includeAirlines)
设置定义要包含的航空公司代码。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setInfantsInSeat(String infantsInSeat)
设置定义占座婴儿数量。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setInfantsOnLap(String infantsOnLap)
设置定义不占座婴儿数量。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setJson(String json)
设置定义采集结果的输出格式。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setLayoverDuration(String layoverDuration)
设置定义中转时长(以分钟为单位)。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setMaxDuration(String maxDuration)
设置定义最长飞行时长(以分钟为单位)。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setMaxPrice(String maxPrice)
设置定义最高机票价格。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setMultiCityJson(String multiCityJson)
设置定义多城市航班的航班信息。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setNoCache(String noCache)
设置默认情况下,5 分钟内缓存相同参数的搜索结果。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setOutboundDate(String outboundDate)
设置定义出发日期,格式为 YYYY-MM-DD。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setOutboundTimes(String outboundTimes)
设置定义出发时间范围。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setReturnDate(String returnDate)
设置定义返程日期,格式为 YYYY-MM-DD。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setReturnTimes(String returnTimes)
设置定义返程时间范围。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setShowHidden(String showHidden)
设置设置为 true 以包含隐藏的航班结果。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setSortBy(String sortBy)
设置定义结果的排序顺序。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setStops(String stops)
设置定义航班经停次数。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setTravelClass(String travelClass)
设置定义旅行舱位。
|
GoogleFlightsRequest |
GoogleFlightsRequest.setType(String type)
设置定义航班类型。
|
| 限定符和类型 | 方法和说明 |
|---|---|
RawResponse |
GoogleService.flights(GoogleFlightsRequest request)
当用户需要查询 Google Flights 航班信息、机票价格、往返/单程/多城市航班、舱位、航空公司、经停、行李或排放过滤结果时触发。
|
Copyright © 2026. All rights reserved.