Project: titanium
Issue TIMOB-18723: Windows: Implement Ti.Geolocation getCurrentHeading and getCurrentPosition methods
http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.Geolocation h2. 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. {code} getCurrentHeading( callback ) : void Retrieves the current compass heading. Parameters callback : Callback (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 (optional) Function to invoke on success or failure of obtaining the current location. Returns void {code}
Story points: 5