![](/img/trans.png)
[英]Find a point after specific distance in straight line between 2 Points in google maps API
[英]How to find the nearest coordinate between a certain point and a line on Google Maps?
使用“ google.maps.geometry.poly.isLocationOnEdge()”來確定X是封閉的還是在折線或多邊形上。
傳遞C坐標,將AB點指定為多段線,並指定一個公差值-設置距該多段線的最大距離為X。返回true或false。
找不到X的實際坐標,但這就是我真正想要的。
https://developers.google.com/maps/documentation/javascript/geometry
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.