V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
a33291
V2EX  ›  问与答

请问经纬度数据反查地址信息(别名逆地理编码)功能,数据结构应如何设计?因为经纬度数字组合太多,是存每个区域或地址的经纬度范围(多边形每个定点经纬度),然后查询的时候按范围匹配吗?

  •  
  •   a33291 · Oct 10, 2022 · 1407 views
    This topic created in 1305 days ago, the information mentioned may be changed or developed.
    4 replies    2022-10-11 09:46:24 +08:00
    vzong
        1
    vzong  
       Oct 10, 2022   ❤️ 1
    geohash
    RicardoY
        2
    RicardoY  
       Oct 10, 2022   ❤️ 1
    基于 Rtree 的方案不错。geohash 有精度问题,geohash/H3 这类编码方案在边缘都需要比较复杂的特殊处理。
    JohnBull
        3
    JohnBull  
       Oct 11, 2022   ❤️ 1
    PosrgreSQL 的 Geometric Types 考虑下?
    a33291
        4
    a33291  
    OP
       Oct 11, 2022
    感谢各位的回复,我去找一下相关资料 😘
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5615 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 09:01 · PVG 17:01 · LAX 02:01 · JFK 05:01
    ♥ Do have faith in what you're doing.