Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 941 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 941 Bytes

como_llegar

Shows in realtime the location of buses.

For running this app a lib/keys.dart file is needed.

import 'package:como_llegar/src/models/map_provider.dart';

const String gtfsURL = "...";

const String busURL = "...";

const Map<String, MapProvider> maps = <String, MapProvider>{
  "OpenStreetMap": MapProvider(
    attribution: "OpenStreetMap contributors",
    url: "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
  )
};

This is a template with the necessary properties. The gtfsURL property contains a string with the URL used by the lib/src/persistence/persistence.dart file for downloading the GTFS files. The maps property describe the available map layers.

Buses map

Bus

Bus list

Stops

Drawer