计算Google Maps API V3中的方向(标题)

问题描述 投票:0回答:2

从起点到终点,我想知道方向。

只是想知道哪个方向在角度值中。

在上图中,角度值可能在350-360之间。(图片来源:https://maps.google.com/maps?saddr=Dr+NS+Hardikar+Rd&daddr=Rithala+Metro+Station,+Rithala+Rd,+Sector+12,+Rohini,+New+Delhi,+Delhi,+India&geocode=FYfstQEdJn-YBA%3BFY8-tgEd3Y-YBCnlvvwRTAENOTHixeyZbhPwSA&sll=28.697665,77.11956&sspn=0.062715,0.11055&hl=en

我无法上传图片。遗憾。

我如何计算?

google-maps-api-3 map-directions
2个回答
1
投票

google.maps.geometry.spherical.computeHeading()和前google.maps.geometry.spherical.computeHeading()start_location用作最后一个leg的参数。


0
投票

end_location

© www.soinside.com 2019 - 2024. All rights reserved.