org.symbian.tools.wrttools.previewer/preview/data/location_data.js
author Eugene Ostroukhov <eugeneo@symbian.org>
Tue, 16 Mar 2010 18:01:11 -0700
changeset 273 b1f63c2c240c
parent 210 0f7abfd6ae62
child 333 895153411a80
permissions -rw-r--r--
Bug 2072 - Update .js files with EPL

/**
 * Copyright (c) 2009-2010 Symbian Foundation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of the License "Eclipse Public License v1.0"
 * which accompanies this distribution, and is available
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 *
 * Initial Contributors:
 * Symbian Foundation - initial contribution.
 * Contributors:
 */

/**
 * 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);

})()