title: Getting CLLocation course and translate to user
body: <p>I'm trying to get information about the direction taken by the user (N-S-W-O) via CLLocation's course method.
  I'm using this code:</p>
  
  <pre><code>double course;
  bool isNord;
  
  course = currentLocation.course;
  NSLog(@"Current course: %f", course);
  NSInteger courseString = course;
  //_labelCompass.text = [NSString stringWithFormat:@"%d", courseString];
  
  if (courseString == -1) {
      _labelCompass.text = @"N/A";
  }
  if (courseString &gt;= 22 &amp;&amp; courseString &lt;= 67) {
      isNord = false;
      _labelCompass.text = @"NE";
  }
  if (courseString &gt;=67 &amp;&amp; courseString &lt;= 112) {
      isNord = false;
      _labelCompass.text = @"E";
  }
  if (courseString &gt;= 112 &amp;&amp; courseString &lt;= 157) {
      isNord = false;
      _labelCompass.text = @"SE";
  }
  if (courseString &gt;= 157 &amp;&amp; courseString &lt;= 208) {
      isNord = false;
      _labelCompass.text = @"S";
  }
  if (courseString &gt;= 208 &amp;&amp; courseString &lt;= 247) {
      isNord = false;
      _labelCompass.text = @"SW";
  }
  if (courseString &gt;= 247 &amp;&amp; courseString &lt;= 292) {
      isNord = false;
      _labelCompass.text = @"W";
  }
  
  if (courseString &gt;= 292 &amp;&amp; courseString &lt;= 337) {
      isNord = false;
      _labelCompass.text = @"NW";
  }
  
  if (isNord == true) {
      _labelCompass.text = @"N";
  }
  </code></pre>
  
  <p>Of course I'm putting this into</p>
  
  <pre><code>- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
  </code></pre>
  
  <p>and the course information is update successfully.
  Using this algorithm I cannot know when the course is North like I do for the others so I've built this.
  There are any other methods better than this?
  Thanks a lot.</p>