Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain Earth Engine access.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[[["\u003cp\u003e\u003ccode\u003eui.util.getCurrentPosition\u003c/code\u003e retrieves the user's current location using the browser's geolocation service.\u003c/p\u003e\n"],["\u003cp\u003eThe function accepts two arguments: a mandatory \u003ccode\u003esuccess\u003c/code\u003e callback function for handling the location data (as an \u003ccode\u003eee.Geometry.Point\u003c/code\u003e) and an optional \u003ccode\u003eerror\u003c/code\u003e callback for handling potential errors.\u003c/p\u003e\n"]]],["This functionality retrieves the user's current location using the browser's geolocation. It utilizes `ui.util.getCurrentPosition(success, error)`. The `success` argument, a function, receives a `ee.Geometry.Point` object representing the location. An optional `error` argument, also a function, handles potential errors, receiving an error message as input. The function doesn't explicitly return any value but rather communicates the location or an error via callback functions.\n"],null,["\u003cbr /\u003e\n\nGets the user's current geographic position from the browser's geolocation service.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------------|---------|\n| `ui.util.getCurrentPosition(success, `*error*`)` | |\n\n| Argument | Type | Details |\n|-----------|--------------------|-----------------------------------------------------------------------------------|\n| `success` | Function | A callback function that takes a ee.Geometry.Point object as its input parameter. |\n| `error` | Function, optional | An optional callback function that takes an error message as its input parameter. |"]]