下面是从谷歌地图捕获的地图。我想计算角度ABC。我有三点的坐标(纬度/经度)。
有什么方法可以解决我的问题吗?
谢谢
You can find the heading between any two points using the google.maps.geometry.spherical.computeHeading method of the Google Maps Javascript API v3:
computeHeading(from:LatLng, to:LatLng) | number | Returns the heading from one LatLng to another LatLng. Headings are expressed in degrees clockwise from North within the range [-180,180).
The angle between the two will be the difference between the 2 headings.
Example using computeHeading in this answer