public StopListTableViewSource(SelectStopViewController myController)
        {
            //where to find stop about first
            CLLocation defaultLoc;
            if (UserPreferences.PreferCurrentLocation)
                defaultLoc = BusDB_GTFS_SQL.Instance.getStopInfo(UserPreferences.DefaultStopId).Value.location;
            else
                defaultLoc = FALLBACK_LOCATION;

            allStops = BusDB_GTFS_SQL.Instance.getAllBusStops (defaultLoc, 2*METERS_PER_MILE).ToArray ();
            this.myController = myController;
            initLocation ();
        }
Esempio n. 2
0
        public StopListTableViewSource(SelectStopViewController myController)
        {
            //where to find stop about first
            CLLocation defaultLoc;

            if (UserPreferences.PreferCurrentLocation)
            {
                defaultLoc = BusDB_GTFS_SQL.Instance.getStopInfo(UserPreferences.DefaultStopId).Value.location;
            }
            else
            {
                defaultLoc = FALLBACK_LOCATION;
            }

            allStops          = BusDB_GTFS_SQL.Instance.getAllBusStops(defaultLoc, 2 * METERS_PER_MILE).ToArray();
            this.myController = myController;
            initLocation();
        }