GPS orientation in android

I know that the Location.getBearing () function returns the bearing, if there is one when moving

 public void onLocationChanged(Location lastLocation)
  {
     int bearing=lastLocation.getBearing()
  }

so now it can be 170 degrees ... but I would like to know if there is something in the android that will give me the orientation direction (for example, for 170 degrees, direction: SSE south, southeast)

+5
source share
1 answer

getBearing "returns the direction in degrees east of the true North." Make a simple switch on the bearing to get direction.

We also note that 170 ° is closer to S (180 °) than to SSE (157.5 °).

+3
source

All Articles