a33291
V2EX  ›  问与答

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

  •  
  •   a33291 · Oct 10, 2022 · 1433 views
    This topic created in 1316 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   ·   1233 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 17:38 · PVG 01:38 · LAX 10:38 · JFK 13:38
    ♥ Do have faith in what you're doing.