Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18723] Windows: Implement Ti.Geolocation getCurrentHeading and getCurrentPosition methods

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-04-14T13:56:40.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.1.0
ComponentsWindows
Labelsn/a
ReporterChristopher Williams
AssigneeGary Mathews
Created2015-03-20T13:48:57.000+0000
Updated2017-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

Comments

  1. Lee Morris 2017-03-14

    Closing ticket as fixed.

JSON Source