[TIMOB-28117] Android: Add all Ti.Geolocation accuracy constants supported by iOS
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | accuracy, android, geolocation, parity |
Reporter | Joshua Quick |
Assignee | Joshua Quick |
Created | 2020-09-10T04:32:06.000+0000 |
Updated | 2021-02-22T19:00:37.000+0000 |
Description
*Summary:*
When assigning the [Ti.Geolocation.accuracy](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Geolocation-property-accuracy) property, Android only supports 2 of the 9 documented
ACCURACY_*
constants which are:
* [ACCURCY_LOW](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Geolocation-property-ACCURACY_LOW)
* [ACCURACY_HIGH](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Geolocation-property-ACCURACY_HIGH)
We should also add the following constants for parity.
* [ACCURACY_REDUCED](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Geolocation-property-ACCURACY_REDUCED)
* [ACCURACY_BEST](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Geolocation-property-ACCURACY_BEST)
* [ACCURACY_BEST_FOR_NAVIGATION ](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Geolocation-property-ACCURACY_BEST_FOR_NAVIGATION)
* [ACCURACY_HUNDRED_METERS ](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Geolocation-property-ACCURACY_HUNDRED_METERS)
* [ACCURACY_KILOMETER ](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Geolocation-property-ACCURACY_KILOMETER)
* [ACCURACY_NEAREST_TEN_METERS ](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Geolocation-property-ACCURACY_NEAREST_TEN_METERS)
* [ACCURACY_THREE_KILOMETERS ](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Geolocation-property-ACCURACY_THREE_KILOMETERS)
*Notes:*
* Distance based accuracy constants will be easy to add since Android's APIs supports this as well.
* The BEST based constants we'll have to research what distance values iOS uses so that we can set the equivalent on Android.
* The iOS 14 based ACCURACY_REDUCED constant is documented to be around 20 km.
The location tracking might come from the Internet Service Provider instead of the GPS as well.
No comments