jamesmontemagno / Xamarin.Plugins

Cross-platform Native API Access from Shared Code!
MIT License
1.3k stars 380 forks source link

Gps Course in IOS #245

Closed francescosaf closed 8 years ago

francescosaf commented 8 years ago

Please take a moment to fill out the following (change to preview to check or place x in []):

Fixes # .

Changes Proposed in this pull request:

- Add Gps Course in iOS

This fixes/implements:

Which plugin does this impact:

francescosaf commented 8 years ago

The heading is not course but I think is very helpful get Gps Course as Heading. If I want the property 'heading' i can use the option heading:true

jamesmontemagno commented 8 years ago

How does this work compared to: https://github.com/francescosaf/Xamarin.Plugins/blob/master/Geolocator/Geolocator/Geolocator.Plugin.iOS/GeolocatorImplementation.cs#L301 ?

francescosaf commented 8 years ago

Thanks @jamesmontemagno

Course is different from Heading

Course information indicates the direction in which the device is moving and doesn’t necessarily reflect the orientation of the device itself

We could add property Course or overwrite Heading. If you want to see "Heading" you can set its property true

So it is better if (location.Course > -1 and !includeHeading) { p.Heading = location.Course; }