RangingPosition
Stay organized with collections
Save and categorize content based on your preferences.
Position of a device during ranging.
Inherited Method Summary
From class java.lang.Object
Public Methods
Gets the azimuth angle in degrees of the ranging device, or null if not available.
The range is (-90, 90].
Gets the distance in meters of the ranging device, or null if not available.
public long
getElapsedRealtimeNanos
()
Returns nanoseconds since boot when the ranging position was taken.
Gets the elevation angle in degrees of the ranging device, or null if not available.
The range is (-90, 90].
Returns the measured RSSI in dBm.
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\u003eRangingPosition\u003c/code\u003e provides the position of a device during ranging, including distance, azimuth, and elevation.\u003c/p\u003e\n"],["\u003cp\u003eIt includes methods to access ranging measurements, RSSI, and the timestamp of the position.\u003c/p\u003e\n"],["\u003cp\u003eThe RSSI values have defined constants for maximum, minimum, and unknown signal strengths.\u003c/p\u003e\n"],["\u003cp\u003eDistance, azimuth, and elevation measurements may be unavailable, indicated by a null return value.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRangingPosition\u003c/code\u003e inherits standard methods from the \u003ccode\u003eObject\u003c/code\u003e class like \u003ccode\u003etoString\u003c/code\u003e, \u003ccode\u003eequals\u003c/code\u003e, and \u003ccode\u003ehashCode\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# RangingPosition\n\npublic class **RangingPosition** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nPosition of a device during ranging. \n\n### Constant Summary\n\n|-----|---------------------------------------------------------------------------------------------------|---|\n| int | [RSSI_MAX](/android/reference/com/google/android/gms/nearby/uwb/RangingPosition#RSSI_MAX) | |\n| int | [RSSI_MIN](/android/reference/com/google/android/gms/nearby/uwb/RangingPosition#RSSI_MIN) | |\n| int | [RSSI_UNKNOWN](/android/reference/com/google/android/gms/nearby/uwb/RangingPosition#RSSI_UNKNOWN) | |\n\n### Public Method Summary\n\n|-----------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [RangingMeasurement](/android/reference/com/google/android/gms/nearby/uwb/RangingMeasurement) | [getAzimuth](/android/reference/com/google/android/gms/nearby/uwb/RangingPosition#getAzimuth())() Gets the azimuth angle in degrees of the ranging device, or null if not available. |\n| [RangingMeasurement](/android/reference/com/google/android/gms/nearby/uwb/RangingMeasurement) | [getDistance](/android/reference/com/google/android/gms/nearby/uwb/RangingPosition#getDistance())() Gets the distance in meters of the ranging device, or null if not available. |\n| long | [getElapsedRealtimeNanos](/android/reference/com/google/android/gms/nearby/uwb/RangingPosition#getElapsedRealtimeNanos())() Returns nanoseconds since boot when the ranging position was taken. |\n| [RangingMeasurement](/android/reference/com/google/android/gms/nearby/uwb/RangingMeasurement) | [getElevation](/android/reference/com/google/android/gms/nearby/uwb/RangingPosition#getElevation())() Gets the elevation angle in degrees of the ranging device, or null if not available. |\n| int | [getRssiDbm](/android/reference/com/google/android/gms/nearby/uwb/RangingPosition#getRssiDbm())() Returns the measured RSSI in dBm. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [toString](/android/reference/com/google/android/gms/nearby/uwb/RangingPosition#toString())() |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nConstants\n---------\n\n#### public static final int\n**RSSI_MAX**\n\nConstant Value: -1 \n\n#### public static final int\n**RSSI_MIN**\n\nConstant Value: -127 \n\n#### public static final int\n**RSSI_UNKNOWN**\n\nConstant Value: -128\n\nPublic Methods\n--------------\n\n#### public [RangingMeasurement](/android/reference/com/google/android/gms/nearby/uwb/RangingMeasurement)\n**getAzimuth** ()\n\nGets the azimuth angle in degrees of the ranging device, or null if not available.\nThe range is (-90, 90\\]. \n\n#### public [RangingMeasurement](/android/reference/com/google/android/gms/nearby/uwb/RangingMeasurement)\n**getDistance** ()\n\nGets the distance in meters of the ranging device, or null if not available. \n\n#### public long **getElapsedRealtimeNanos** ()\n\nReturns nanoseconds since boot when the ranging position was taken. \n\n#### public [RangingMeasurement](/android/reference/com/google/android/gms/nearby/uwb/RangingMeasurement)\n**getElevation** ()\n\nGets the elevation angle in degrees of the ranging device, or null if not available.\nThe range is (-90, 90\\]. \n\n#### public int **getRssiDbm** ()\n\nReturns the measured RSSI in dBm. \n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **toString** ()"]]