rootliang
V2EX  ›  问与答

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

  •  
  •   rootliang · Aug 2, 2019 · 1337 views
    This topic created in 2574 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   ·   3066 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 13:52 · PVG 21:52 · LAX 06:52 · JFK 09:52
    ♥ Do have faith in what you're doing.