DiagnosticsGeoLocation object

Provides an interface to methods and properties having to do with GeoLocation.

Note  These APIs can only be used with F12 developer tools and the Diagnostics Script Engine, and can't be called from JavaScript.

 

 

Syntax

var oGeoLocation = oEmulation.geoLocation;

DOM Information

Inheritance Hierarchy

The DiagnosticsGeoLocation does not inherit from any class or interface.

Members

The DiagnosticsGeoLocation object has these types of members:

  • Methods
  • Properties

Methods

The DiagnosticsGeoLocation object has these methods.

Method Description
clearAccuracy

Clears the accuracy of the latitude and longitude properties.

clearAll

Clears all GeoLocation parameters.

clearAltitude

Clears the current altitude property.

clearAltitudeAccuracy

Clears the current accuracy of the altitude property.

clearHeading

Clears the current heading, or direction of travel.

clearLatitude

Clears the current latitude for GeoLocation.

clearLongitude

Clears the current longitude for GeoLocation.

clearSpeed

Clears the current ground speed for GeoLocation.

setPosition

Sets the current position in GeoLocation.

 

Properties

The DiagnosticsGeoLocation object has these properties.

Property Access type Description

accuracy

Read/write

Get or set the accuracy of the longitude and latitude properties in meters.

altitude

Read/write

Gets or sets altitude in GeoLocation.

altitudeAccuracy

Read/write

Sets or gets the current altitude accuracy of GeoLocation.

hasSignal

Read/write

Sets or gets the signal emulation to use when the device does not have a geolocation signal.

heading

Read/write

Get or set the heading or direction.

latitude

Read/write

Get or set the latitude in the GeoLocation object, in decimal degrees.

longitude

Read/write

Get or set the longitude in the DiagnosticsGeoLocation object, in decimal degrees.

speed

Read/write

Get or set speed of device in meters per second.