Re: Building a heat map from geo data in index

2012-06-15 Thread Jamie Johnson
So I've tried this a bit, but I can't get it to look quite right. What I was doing up until now was taking the center point of the geohash cell as location for the value I am getting from the index. Doing this you end up with what appears to be islands (using HeatMap.js currently). I guess what I

Re: Building a heat map from geo data in index

2012-06-11 Thread Jamie Johnson
Yeah I'll have to play to see how useful it is, I really don't know at this point. On another note we already using some binning like is described in teh wiki you sent, specifically http://code.google.com/p/javageomodel/ for other purposes. Not sure if that could be used or not, guess I'd have to

Re: Building a heat map from geo data in index

2012-06-11 Thread Tanguy Moal
Yes it looks interesting and is not too difficult to do. However, the length of the geohashes gives you very little control on the size of the regions to colorize. Quoting wikipedia : geohash length km error1 ±25002 ±6303 ±784 ±205 ±2.46 ±0.617 ±0.0768 ±0.019 This is interes

Re: Building a heat map from geo data in index

2012-06-11 Thread Jamie Johnson
If you look at the Stack response from David he had suggested breaking the geohash up into pieces and then using a prefix for refining precision. I hadn't imagined limiting this to a particular area, just limiting it based on the prefix (which would be based on users zoom level or something) allow

Re: Building a heat map from geo data in index

2012-06-11 Thread Tanguy Moal
There is definitely something interesting to do around geohashes. I'm wondering how one could map the N by N tiles requested tiles to a range of geohashes. (Where the gap would be a function of N). What I try to mean is that I don't know if a bijective function exist between tiles and geohash rang

Re: Building a heat map from geo data in index

2012-06-11 Thread Dmitry Kan
so it sounds to me, that the geohash is just a hash representation of lat, lon coordinates for an easier referencing (see e.g. http://en.wikipedia.org/wiki/Geohash). I would probably start with something easier, having bbox lat,lon coordinate pairs of top left corner (or in some coordinate systems,

Re: Building a heat map from geo data in index

2012-06-11 Thread Jamie Johnson
That is certainly an option but the collecting of the heat map data is really the question. I saw this http://stackoverflow.com/questions/8798711/solr-using-facets-to-sum-documents-based-on-variable-precision-geohashes but don't have a really good understanding of how this would be accomplished.

Re: Building a heat map from geo data in index

2012-06-11 Thread Stefan Matheis
I'm not entirely sure, that it has to be that complicated .. what about using for example http://www.patrick-wied.at/static/heatmapjs/ ? You could collect all the geo-related data and do the (heat)map stuff on the client. On Sunday, June 10, 2012 at 7:49 PM, Jamie Johnson wrote: > I had a req

Building a heat map from geo data in index

2012-06-10 Thread Jamie Johnson
I had a request from a customer which to this point I have not seen much similar so I figured I'd pose the question here. I've been asked if it was possible to build a heat map from the results of a query. I can imagine a process to do this through some post processing, but that sounds very expen