winky / phpgeo
php 地理多边形角度
1.0.0
2018-07-23 07:10 UTC
Requires
- php: >=7.0
This package is not auto-updated.
Last update: 2024-10-02 20:24:00 UTC
README
作者 Marcus Jaschen mjaschen@gmail.com github https://github.com/mjaschen/phpgeo
在此基础上进行开发,增加了两点之间的角度。感谢Jaschen。
有关phpgeo文档,请参阅:https://github.com/mjaschen/phpgeo
角度
<?php use Location\LatLng; use Location\Angle; $A = new LatLng(116.431973, 39.92031); $B = new LatLng(116.469567,39.921495); $angle = new Angle(); $angle->getAngle($A, $B); // returns 87.646479487294