Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
LocationObject.getBearing() 返回此设备的水平行进方向[0 到 360 度]。
如何根据这个方位值计算用户移动方向,如北、南等?
提前致谢。
从文档中:
返回真北以东度数的行进方向。如果 hasBearing() 为 false,则返回 0.0。