2012-07-28 161 views
2

在Googlemaps中繪製圓形覆蓋圖之後,是否可以獲得整組座標?基本上我想要做的是類似於heatmaps,但我正在繪製一個與中心作爲標記的圓圈,然後我希望找到所有座標落在該圓圈中。谷歌地圖座標圈

+0

圓內有無數的座標。你感興趣的人是如何指定的? – geocodezip 2012-07-28 10:38:50

回答

2

您可能不需要在圓上找到點,以確定點是否在圓中。例如,如果我正確理解你的目的,你有一堆像[(lat,lon),...]一樣的點。你可以試試這個,

Loop points[] 
    if distance between (lat,lon) and the marker (center of the markder) < r of the circle 
    the poinst is within the circle