Version: Smart Feature Phone 2.5
Geolocation.getCurrentPosition()
The Geolocation.getCurrentPosition() method is used to get the current position of the device.
Syntax#
Parameters#
successA callback function that takes a Position object as its sole input parameter.errorOptional An optional callback function that takes a PositionError object as its sole input parameter.optionsOptional An optional PositionOptions object.