Inspiration

It's 10 PM and you're a hungry college student in Boston. Half the places nearby are closed, the open ones are scattered around the city, and the T is about to stop running. Every time we tried to figure out where to eat, we had a map, a menu, and the MBTA schedule open at once and were doing the math in our heads. What we actually wanted to know was what we could eat tonight for the money we had and still get home.

So we built the thing we kept doing by hand. You tell it where you are, your budget, and how long you want to stay. It picks one open place and one dish, plans the trip, and tells you when the last train or bus home leaves.

What it does

  • Picks one open restaurant and a dish that fits your budget, with the fare already counted. The price you see is the dish plus the ride there and back.
  • In late-night mode it only suggests places that will still be open long enough for you to eat, and it checks you can still catch the last T or bus home.
  • Plans trips by walking, subway or bus using real MBTA schedules, with up to one transfer. It updates the plan as time passes, and you can pin a trip and follow it while you travel.
  • Tells you when nothing is running and when service starts again.
  • Lets you check in at a restaurant for stamps, log what you ate, and report wrong prices or dishes that aren't on the menu anymore.

The math is simple:

$$T = p_{\text{dish}} + f_{\text{there}} + f_{\text{home}}$$

With a \$2.40 subway fare and a \$1.70 bus fare, a \$6 taco is really a \$10.80 night if you take the T both ways.

How we built it

The backend is plain Python, no framework. The menus and prices are in a SQLite database we built from a spreadsheet we put together by hand from restaurants' own websites, and the trip planner reads MBTA schedules. The frontend is plain JavaScript with a Leaflet map and no build step, based on our own Figma design with a dark theme. We split the work by area, and used a couple of coding assistants for the boring parts.

Challenges

The walking directions gave us the most trouble. The routing service we started with began refusing requests partway through, and the free public ones were slow. We ended up with a fallback chain, a precomputed table of walks, and estimates. When all we have is an estimate, the app doesn't draw a straight line and call it a route.

Opening hours were the next problem. They come from public listings and are often wrong or missing. Early on the app happily recommended places that were closed. Now it only picks places that are open, and the README says plainly that the hours aren't verified.

The last train is a hard deadline. Every pick has to pass a check that you can get there, eat, and get back before service ends, and it had to be fast enough to feel instant.

And time is weird. The transit service day doesn't roll over at midnight, it rolls over around 3 AM. We got that wrong at first, so 12:20 AM and 4 AM acted differently than anyone would expect.

What we learned

Real data is messy, and a lot of the work was deciding what to do when it is: a missing menu, bad hours, a walking route that never loads. We also found that saying "about 12 min, estimate" in the app works better than pretending to be sure. And we learned to keep track of what we had actually tested and what we had only assumed.

What's next

Menus for the places that still don't have one, verified hours, and better support for trips that need more than one transfer. Two-transfer trips are planned now, but we've only tested them lightly against live schedules.

Share this project:

Updates

Submission history