开发者

how to efficiently perform bounded geo query?

Any suggestions for how to efficiently perform bounded geo query? caching?

Background

I am using google maps 开发者_如何转开发+ marker clusterer, and every time user changes bounds I query the backend. I would like to make this more efficient.

Options

  1. No Caching - on bounds change -> query with new bounds -> update all markers
  2. Caching on bounds change -> divide the bounds into quadkeys -> check the quadkey cache -> query for markers using quadkey not in cache -> add new quadkey markers to the map

Suggestions please?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜