Line data Source code
1 : import 'package:stay_points/stay_points.dart';
2 : import 'package:stay_points/src/identification/offline/offline_identification.dart';
3 : import 'package:stay_points/src/identification/online/online_identification.dart';
4 :
5 : class StayPointIdentification {
6 : bool get isAwesome => true;
7 : final Threshold threshold;
8 :
9 2 : StayPointIdentification(this.threshold);
10 :
11 : List<StayPoint> process({List<Location> locations}) {
12 1 : OfflineIdentification offline = new OfflineIdentification();
13 2 : return offline.process(threshold: this.threshold, locations: locations);
14 : }
15 :
16 : StayPoint processBuffered({Location location}) {
17 1 : OnlineIdentification online = new OnlineIdentification();
18 2 : return online.process(threshold: this.threshold, location: location);
19 : }
20 : }
|