Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的应用程序中绘制了一条连接 4 个经纬度点的路线。我将 latlong 值保存在列表中。
你能指导我如何找到这条路线的中心点......或中点纬度/经度。
给你: https ://github.com/grundid/osm-tools/blob/master/osm-tools-api/src/main/java/org/osmtools/utils/Centroid.java
只需将您的积分传递给此类,它将计算质心。