Expand flight search coverage

This commit is contained in:
TopherMayor
2026-04-30 21:17:48 -07:00
parent bee992e10b
commit b768990e05
2 changed files with 12 additions and 2 deletions

View File

@@ -3132,6 +3132,12 @@
switch(type) {
case 'gmaps': url = `https://www.google.com/maps/search/${encodeURIComponent(q)}`; break;
case 'flights': url = `https://www.google.com/travel/flights/search?q=${encodeURIComponent(q)}&tfpla=on`; break;
case 'flights-google': url = `https://www.google.com/travel/flights/search?q=${encodeURIComponent(q)}&tfpla=on`; break;
case 'flights-kayak': url = `https://www.kayak.com/flights/${encodeURIComponent(q)}`; break;
case 'flights-expedia': url = `https://www.expedia.com/Flights-Search?trip=roundtrip&leg1=from:${encodeURIComponent(q)},to:SJD,departure:${encodeURIComponent('2027-02-03TANYT')}&leg2=from:SJD,to:${encodeURIComponent(q)},departure:${encodeURIComponent('2027-02-07TANYT')}`; break;
case 'flights-united': url = `https://www.united.com/en/us/fsr/choose-flights?f=1&t=SJD&d=2027-02-03&tt=2027-02-07&pt=roundtrip`; break;
case 'flights-delta': url = `https://www.delta.com/flight-search/search?tripType=roundtrip&inputOrigin=${encodeURIComponent(q)}&destination=SJD&departureDate=2027-02-03&returnDate=2027-02-07`; break;
case 'flights-alaska': url = `https://www.alaskaair.com/booking/flights`; break;
case 'hotels': url = `https://www.kayak.com/hotels/${encodeURIComponent(q)}/2admins`; break;
case 'viator': url = `https://www.viator.com/search/${encodeURIComponent(q)}`; break;
case 'expedia': url = `https://www.expedia.com/Thotel-Search?destination=${encodeURIComponent(q)}`; break;