|
1 /** |
|
2 * SAPI Sample Data - Location |
|
3 */ |
|
4 |
|
5 (function(){ |
|
6 |
|
7 |
|
8 var data_basicLocationInformation = { |
|
9 "Longitude":77.694589331833, |
|
10 "Latitude":12.942209068513, |
|
11 "Altitude":836.5 |
|
12 } |
|
13 |
|
14 var data_genericLocationInfo = { |
|
15 "Longitude":77.694546416505, |
|
16 "Latitude":12.942233711299, |
|
17 "Altitude":836, |
|
18 "HorizontalSpeed":0.05999999865889549, |
|
19 "HorizontalSpeedError":1.0199999809265137, |
|
20 "SatelliteNumView":11, |
|
21 "SatelliteNumViewUsed":7, |
|
22 "Heading":203.89999389648438, |
|
23 "HeadingError":2.89898989898232, |
|
24 "MagneticCourse":205.89999389600000, |
|
25 "MagneticCourseError":1.09090389600000, |
|
26 "TrueCourse":203.89999389648438, |
|
27 "TrueCourseError":2.89898989898232, |
|
28 "MagneticHeading":205.89999389600000, |
|
29 "MagneticHeadingError":1.09090389600000 |
|
30 }; |
|
31 |
|
32 /** |
|
33 * register data! |
|
34 */ |
|
35 device.implementation.loadData('Service.Location', 'BasicLocationInformation', data_basicLocationInformation); |
|
36 device.implementation.loadData('Service.Location', 'GenericLocationInfo', data_genericLocationInfo); |
|
37 |
|
38 })() |
|
39 |