1
1
import { Page , NavController } from "ionic/ionic" ;
2
+ import { GeofenceDetailsPage } from "../geofence-details/geofence-details" ;
2
3
3
4
const FIXTURES = [
4
5
{ id : 1 , latitude : 50.3021079 , longitude : 18.6771861 , radius : 3000 , transitionType : 1 , notification : { text : "Gliwice Train Station" } } ,
5
6
{ id : 2 , latitude : 50.4728049 , longitude : 19.0736874 , radius : 3000 , transitionType : 1 , notification : { text : "Pyrzowice Airport" } } ,
6
7
{ id : 3 , latitude : 50.0671974 , longitude : 19.945232 , radius : 3000 , transitionType : 1 , notification : { text : "Cracow Main Station" } } ,
7
8
{ id : 4 , latitude : 52.2287803 , longitude : 21.001124 , radius : 3000 , transitionType : 1 , notification : { text : "Warsaw Main Station" } } ,
8
- { id : 5 , latitude : 40.7257093 , longitude : - 74.0032786 , radius : 4000 , transitionType : 1 , notification : { text : "New York - SOHO" } } ,
9
- { id : 6 , latitude : 34.0033907 , longitude : - 118.5069657 , radius : 3000 , transitionType : 1 , notification : { text : "LA - Santa Monica State Beach" } } ,
9
+ { id : 5 , latitude : 40.7257093 , longitude : - 74.0032786 , radius : 4000 , transitionType : 3 , notification : { text : "New York - SOHO" } } ,
10
+ { id : 6 , latitude : 34.0033907 , longitude : - 118.5069657 , radius : 3000 , transitionType : 2 , notification : { text : "LA - Santa Monica State Beach" } } ,
10
11
{ id : 7 , latitude : 25.8938595 , longitude : - 80.1330216 , radius : 500 , transitionType : 1 , notification : { text : "Dexter's Apartment - Miami Bay Harbour" }
11
12
] ;
12
13
@@ -21,6 +22,8 @@ export class GeofenceListPage {
21
22
}
22
23
23
24
itemTapped ( event , geofence ) {
24
-
25
+ this . nav . push ( GeofenceDetailsPage , {
26
+ geofence
27
+ } )
25
28
}
26
29
}
0 commit comments