title: How to get an actual direction like east - west in unity?
body: <p>I am using google API to show a map in unity and also generate object on map's location from player position. Now I want to know actual direction. It means identify direction (east-west) from google maps or google API.</p>
  
  <blockquote>
    <p>I made a code but it doesn't give me actual direction.</p>
  </blockquote>
  
  <pre><code> var v = transform.forward;
   v.y = 0;
   v.Normalize();
  
   if (Vector3.Angle(v, Vector3.forward) &lt;= 45.0) {
       Debug.Log("North");
   }
   else if (Vector3.Angle(v, Vector3.right) &lt;= 45.0) {
       Debug.Log("East");
   }
   else if (Vector3.Angle(v, Vector3.back) &lt;= 45.0) {
       Debug.Log("South");
   }
   else {
       Debug.Log("West");
   }
  </code></pre>