rootliang
V2EX  ›  问与答

GO 如何优雅计算一对多坐标距离

  •  
  •   rootliang · Aug 2, 2019 · 1266 views
    This topic created in 2519 days ago, the information mentioned may be changed or developed.
    目前方案是逐个计算距离,计算完毕后再进行排序。这种办法总感觉很罗嗦,请问有无更好的算法或者现成的接口?
    1 replies    2019-08-02 20:14:04 +08:00
    rootliang
        1
    rootliang  
    OP
       Aug 2, 2019
    了解到 Geohash 了,貌似可行
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   918 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 105ms · UTC 19:54 · PVG 03:54 · LAX 12:54 · JFK 15:54
    ♥ Do have faith in what you're doing.