diff -r 315255cd1aef -r 20be4dd42b12 mypackage_wrt/preview/data/location_data.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mypackage_wrt/preview/data/location_data.js Fri Apr 30 15:01:03 2010 +0100 @@ -0,0 +1,39 @@ +/** + * SAPI Sample Data - Location + */ + +(function(){ + + +var data_basicLocationInformation = { + "Longitude":77.694589331833, + "Latitude":12.942209068513, + "Altitude":836.5 + } + +var data_genericLocationInfo = { + "Longitude":77.694546416505, + "Latitude":12.942233711299, + "Altitude":836, + "HorizontalSpeed":0.05999999865889549, + "HorizontalSpeedError":1.0199999809265137, + "SatelliteNumView":11, + "SatelliteNumViewUsed":7, + "Heading":203.89999389648438, + "HeadingError":2.89898989898232, + "MagneticCourse":205.89999389600000, + "MagneticCourseError":1.09090389600000, + "TrueCourse":203.89999389648438, + "TrueCourseError":2.89898989898232, + "MagneticHeading":205.89999389600000, + "MagneticHeadingError":1.09090389600000 + }; + + /** + * register data! + */ + device.implementation.loadData('Service.Location', 'BasicLocationInformation', data_basicLocationInformation); + device.implementation.loadData('Service.Location', 'GenericLocationInfo', data_genericLocationInfo); + +})() + \ No newline at end of file