a33291
V2EX  ›  问与答

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

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