Sets the current position in 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
DiagnosticsGeoLocation.setPosition(latitude, longitude, altitude, accuracy, altitudeAccuracy, heading, speed);
Parameters
latitude [in]
Type: numberLatitude in meters.
longitude [in]
Type: numberLongitude in meters.
altitude [in]
Type: numberAltitude in meters.
accuracy [in]
Type: numberAccuracy in meters.
altitudeAccuracy [in]
Type: numberAccuracy of the altitude property in meters.
heading [in]
Type: numberDirection in degrees.
speed [in]
Type: numberSpeed in meters per second.
Return value
This method does not return a value.
.png)