Interactive demo · iOS App
The next tram, at a glance
Tranvía ZGZ opens on your tram stop without you looking for it: how long until the next tram in each direction, and whether you can walk there in time. It is a small app for anyone who takes Line 1 in Zaragoza every day. Scroll down and the tram takes you through it, stop by stop.
An unofficial app, with no link to Zaragoza City Council or to the tram operator. It is in Spanish, like the city it runs in, and so are the captures below: the real app, with the live times of a September evening.

With your location the app finds the nearest stop and opens on it, with how far it is and how many minutes on foot, measured along the streets and not in a straight line. If another stop is almost as close, one tap switches to it.
The minutes left go in large type, like on a ticket, with the arrival time underneath. Below, the trams of the next few minutes run along a track drawn to scale, next to a band for how long your walk takes, and then the verdict: you make it on foot, you catch the next one, or you do not.
Every stop has two directions, towards Mago de Oz and towards Avenida Academia. The app remembers the last one you chose, so if you always head the same way there is nothing to tap.
All 25 stops, in order and laid out like the map, each with how far it is from you. There is a search box and a shortcut to the nearest one, and it works without location access too: you just pick the stop yourself.
Saving a place gives it a name, like Home or Work. Whenever you are near it the app picks that stop, even if another one is slightly closer, because that is the one you actually take.
Widgets for the Home Screen and the Lock Screen, with the nearest stop or one you pin, and a Control Center control that opens the app on that stop when you tap it.
SwiftUI, with no external packages and no server of its own. The times come straight from Zaragoza City Council open data, and the request is the same for everyone, with no location and no identifiers. Your location never reaches the developer, and the walking route is worked out by Apple Maps along real streets. The widgets and the Control Center control are WidgetKit and App Intents, and they share the saved stop and places with the app through an App Group. No accounts, no ads, no analytics, and the source of the data is credited on screen, as the council asks.


