I built a trip planner for concerts in France. Here's what 12 transport and event APIs taught me
Going to a concert in another city usually means six tabs: the ticket, the train, the hotel, a map, and a spreadsheet to add it all up. Bundle Events puts that into one flow. You pick where you leave from and the event. You get the outbound and return trip (train, bus, car or plane), a hotel near the venue, the total price, and pre-filled booking links. The trip lives at a shareable URL. The site…
Creating a single platform for planning concerts across France can be a daunting task. It requires gathering information from numerous sources, each with its own quirks and quirks. The app Bundle Events simplifies this process by consolidating all of that data into one seamless experience. To use it, you simply input your starting point and the event you're interested in attending.
The app then calculates the most efficient route, whether by train, bus, car, or plane, provides a nearby hotel option, estimates the total cost, and even generates pre-filled booking links. This information is neatly presented on a shareable link so you can easily share it with others.
The technology behind Bundle Events is quite impressive. Built using Next.js 16, React 19, and TypeScript, it provides a robust backend powered by Supabase. For visualizing locations, MapLibre and OpenFreeMap are utilized. The real magic lies in integrating twelve separate public APIs that were never designed to work together. This integration was not without its challenges.
One major hurdle was adapting to changes in the SNCF API's format overnight. Train data is now sourced from the SNCF Navitia API, but the format has undergone significant alterations. Stop area IDs no longer contain station UIC codes, high-speed trains are labeled as "Train" under commercial_mode, and physical_mode now specifies long distance routes.
The train number is now stored in trip_short_name, while headsign indicates the destination. To handle instances where a journey has no price, the app now checks for "found: false" and treats it as "price unknown". This issue was resolved by creating adapters that map different payloads to consistent types, allowing for easier handling of format changes.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to