[TIMOB-18723] Windows: Implement Ti.Geolocation getCurrentHeading and getCurrentPosition methods
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-04-14T13:56:40.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 4.1.0 |
Components | Windows |
Labels | n/a |
Reporter | Christopher Williams |
Assignee | Gary Mathews |
Created | 2015-03-20T13:48:57.000+0000 |
Updated | 2017-03-14T20:14:14.000+0000 |
Description
http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.Geolocation
Methods
- getCurrentHeading http://docs.appcelerator.com/titanium/3.0/#!/api/HeadingResponse http://docs.appcelerator.com/titanium/3.0/#!/api/HeadingData - getCurrentPosition http://docs.appcelerator.com/titanium/3.0/#!/api/LocationResults http://docs.appcelerator.com/titanium/3.0/#!/api/LocationCoordinates http://docs.appcelerator.com/titanium/3.0/#!/api/LocationProviderDict Note that the responses use special objects, we should use structs to hold them like we do for Point/Dimension/Font/etc. Additionally, those objects hold other specialized properties that should _also_ be represented by structs.
getCurrentHeading( callback ) : void
Retrieves the current compass heading.
Parameters
callback : Callback<HeadingResponse> (optional)
Function to invoke on success or failure of obtaining the current heading.
Returns void
--------------
getCurrentPosition( callback ) : void
Retrieves the last known location from the device.
On Android, the radios are not turned on to update the location, and a cached location is used.
On iOS the radios may be used if the location is too "old".
Parameters
callback : Callback<LocationResults> (optional)
Function to invoke on success or failure of obtaining the current location.
Returns void
Closing ticket as fixed.