-
Notifications
You must be signed in to change notification settings - Fork 0
/
waste.js
38 lines (24 loc) · 1.46 KB
/
waste.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// this.backend.loadclarifyservice('https://scontent.xx.fbcdn.net/t31.0-8/10623590_789178044458631_3709053615946113160_o.jpg').then(mapdata => {
// alert(JSON.stringify(mapdata))
// });
// let distance = this.backend.latlongdist(40.7486, -73.9864, 40.7486, -73.9864);
// alert(distance)
//this.facebookauth();
// alert(this.wiki.search("kaloor"));
// alert(this.red("riyas"));
// this.goToOtherPage();
// public red = (data: string) => (data == "riyas") ? "i am riyas" : "i am not riyas";
// let watch = Geolocation.watchPosition().subscribe(pos => {
// console.log('lat: ' + pos.coords.latitude + ', lon: ' + pos.coords.longitude);
// // alert('latwat: ' + pos.coords.latitude + ', lonwat: ' + pos.coords.longitude);
// //let url = "http://maps.googleapis.com/maps/api/geocode/json?latlng=" + pos.coords.latitude + "," + pos.coords.longitude + "&sensor=true'";
// //this.backend.load(url).then(data => {
// // this.speak("your current location is " + data.results[0].formatted_address + " .");
// //});
// });
// public description(item: string) {
// let url = "https://en.wikipedia.org/w/api.php?action=query&prop=description&titles=kaloor&prop=extracts&exintro&explaintext&exsentences=3&format=json&redirects&callback=?";
// this.backend.load(url).then(data => {
// console.log(data);
// });
// }