siiruli / bussit-flutter

A routing app for the HSL area
4 stars 0 forks source link

Bussit

A routing app for the HSL area

Features

Screenshots

img-0 img-1 img-2 img-4

API key

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

Installation

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.