LocationResponse
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Public Methods
public Location
getLocation ()
Returns the current lat/lng location of the device.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["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 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eLocationResponse\u003c/code\u003e provides the result from a \u003ccode\u003egetLocation()\u003c/code\u003e request, specifically the device's current location.\u003c/p\u003e\n"],["\u003cp\u003eIt extends the \u003ccode\u003eResponse\u003c/code\u003e class and contains a \u003ccode\u003eLocationResult\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can access the device's latitude and longitude using the \u003ccode\u003egetLocation()\u003c/code\u003e method within this class.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits methods from \u003ccode\u003eResponse\u003c/code\u003e and \u003ccode\u003eObject\u003c/code\u003e, including \u003ccode\u003egetResult()\u003c/code\u003e and \u003ccode\u003esetResult()\u003c/code\u003e for managing the \u003ccode\u003eLocationResult\u003c/code\u003e.\u003c/p\u003e\n"]]],["`LocationResponse`, an extension of `Response`, provides results from `getLocation()`. It offers `getLocation()` to retrieve the device's current latitude and longitude. It inherits `getResult()` and `setResult()` for managing `LocationResult`. Additionally, it inherits standard Java object methods like `equals()`, `hashCode()`, `toString()`, and `wait()`. The core functionality revolves around fetching the device's geographical location and managing the associated response object.\n"],null,[]]