ui.util.getCurrentPosition

Gets the user's current geographic position from the browser's geolocation service.

UsageReturns
ui.util.getCurrentPosition(success, error)
ArgumentTypeDetails
successFunction

A callback function that takes a ee.Geometry.Point object as its input parameter.

errorFunction, optional

An optional callback function that takes an error message as its input parameter.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!