A routing app for the HSL area
- Search for and save bus stops to see next departures in real time
- Find itineraries using public transport, city bikes or your own bicycle
- Find itineraries that start on board a vehicle
- Take your bike on a train or subway
- Show itineraries and city bike stations on map
- Use GPS location for map and itinerary search
This app uses the Digitransit API to get stop, itinerary and map data
To use this code, get an API key from https://portal-api.digitransit.fi/ and
save it to lib/api/secrets.dart
The documentation for the API can be found in https://digitransit.fi/en/developers/
To update lib/graphql/schema.graphql
, run
npx get-graphql-schema https://api.digitransit.fi/routing/v1/routers/hsl/index/graphql?digitransit-subscription-key=<api_key> > lib/graphql/schema.graphql
Install Flutter to build the project.
After that, run flutter run --flavor dev
to run the application in debugging mode, and flutter run --release --flavor dev
for release mode.
If you want to run the app on an Android device, enable USB debugging and then connect to the device with a USB cable.
You can also build an apk with flutter build apk
and then install the apk on your device.
Remember to add your Digitransit API key first!
The app works in web and Android. It has not been tested on iOS at all so it might not work there.