6 ms·
Looks really cool! I'll definitely use this next time I'm looking for flights or just want to go somewhere random for cheap. One bug(?) I found is that the ret
by lbittner 2y ago
Looks really cool! I'll definitely use this next time I'm looking for flights or just want to go somewhere random for cheap.
One bug(?) I found is that the return flights don't seem to be departing from the city I am travelling to. For example, it's showing me flights that go from X > Y, but then the return flight is Z > X instead of Y > X.
- rabbit_1 2y agoThanks! If the arrival (Y) is a specific location, the return flight is guaranteed to be Y->X. However, if Y is a country, region, or continent, the return flight could be from any airport within that area, prioritizing the cheapest option. For example, if you search for a round trip: "Berlin to Asia for a week in Aug" the arrival could be Bangkok, but the departure for your return flight could be from Singapore. Now that you mention it, I wonder if it would be better to enforce return_from_same_city or allow the user to toggle this option. What do you think?
- rabbit_1 2y agoFYI - I refactored the code so that it now enforces "return_from_same_city". enjoy.