rootliang
V2EX  ›  问与答

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

  •  
  •   rootliang · Aug 2, 2019 · 1252 views
    This topic created in 2509 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   ·   5410 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 08:08 · PVG 16:08 · LAX 01:08 · JFK 04:08
    ♥ Do have faith in what you're doing.