Caching view-port based Geo-queries

Posted by friism on Stack Overflow See other posts from Stack Overflow or by friism
Published on 2010-04-23T11:17:24Z Indexed on 2010/04/23 11:23 UTC
Read the original article Hit count: 325

Filed under:
|
|

I have a web app with a giant Google Map in it. As users pan and zoom around on the map, points are dynamically loaded through AJAX call which include the viewport bounds (NE and SW corner coordinates) and some other assorted parameters.

How do I cache these request for points? The problem is that the parameters are highly variable and (worst) not discrete i.e. floats with a lots of decimal places. I'm using ASP.NET-MVC/C#/LINQ2SQL/SQL-Server but the problem is not tied to that platform.

This is the signature of the the relevant method:

[AcceptVerbs(HttpVerbs.Post)]
public JsonResult Data(string date, string categories,
    string ne_lat, string ne_lng,
    string sw_lat, string sw_lng)

© Stack Overflow or respective owner

Related posts about geospatial

Related posts about google-maps