News for hackers. Stuff that matters.
Re:Redis 3.2.0 is out by aeharding on Friday May 06, 2016 @07:45AM (#11643222)
The geo API seems rather... specific. Is there really a demand for it?
Re:Redis 3.2.0 is out by PaulRobinson on Friday May 06, 2016 @08:12AM (#11643373)
Geo is insanely useful when you're after stuff within x miles of a known location - so a lot of mobile apps.

My problem with many existing geo implementations is they assume that a circular radius is the query type I care about, and longitude and latitude is sufficient to know where I actually am in terms of jurisdiction, etc.

Being able to add fine grained polygons to represent national, state, county or town boundaries and being able to identify the relationships between my co-ordinates and those entities is still far more complex than I would like.

Adding polygon support might be an interesting exercise, actually.

Re:Redis 3.2.0 is out by antirez on Friday May 06, 2016 @08:17AM (#11643394)
Hey Paul, we have this feature added as a Lua script, but adding it in a native way could be interesting actually. Itamar Haber wrote the Lua script and was pushing for adding it in a native way, I wanted to check after the release the actual demand for it.
Re:Redis 3.2.0 is out by tyre on Friday May 06, 2016 @01:41PM (#11645463)
This would be extremely helpful. We work with local governments and they have a cornucopia of geo-boundaries to query across. PostGIS works really well, but providing a cache-layer on top via Redis for simple counts would be amazing.
Re:Redis 3.2.0 is out by marktangotango on Friday May 06, 2016 @08:24AM (#11643432)
I personally don't have a use right now, but that sounds incredibly useful!
Re:Redis 3.2.0 is out by simonw on Friday May 06, 2016 @04:54PM (#11646666)
That sounds amazing. Do you have a link to the lua script?

UPDATE: found it https://github.com/RedisLabs/geo.lua

Re:Redis 3.2.0 is out by Doctor_Fegg on Friday May 06, 2016 @08:52AM (#11643586)
Yes please! So much interesting stuff that this would enable.
Re:Redis 3.2.0 is out by endijs on Friday May 06, 2016 @10:02AM (#11644010)
+1 from me. This would be good addition!
Re:Redis 3.2.0 is out by rch on Friday May 06, 2016 @11:05AM (#11644452)
The ability to query with polygons defined by transit isochrones would be broadly useful.
Re:Redis 3.2.0 is out by har777 on Friday May 06, 2016 @03:51PM (#11646312)
+1. Would be an extremely useful addition !
Re:Redis 3.2.0 is out by chipsambos on Friday May 06, 2016 @07:44PM (#11647528)
I work on a SaaS spatial product and had to come up with a solution to the same point/boundary problem. It needed to be 'fast' (ideally <3s) when filtering, rendering, styling and summarising 100k points within 43k polygons (so say 100k shop locations within many state, county and zip/zcta codes in US). DB is Oracle 11g for several reasons: product is larger and older than this requirement, small team has solely expertise with oracle and zero commercial experience with nosql dbs (good devs though and have showed interest in and toyed with nosql dbs) plus standard budget/time constraints.

Solution was to add a hidden column for each administrative category (e.g. for US: region, state, county, zcta) to each point record to replace spatial searches with filtering.

Would something like that work for you? What kind of numbers of points and polygons are you looking at and how quickly do you need to solve the problem?

Re:Redis 3.2.0 is out by masklinn on Friday May 06, 2016 @08:54AM (#11643597)
> My problem with many existing geo implementations is they assume that a circular radius is the query type I care about

Really? Wouldn't most GIS implement something like OGC Simple Features? AFAIK all SQL GIS implementations follow that (to various levels of completeness, but even MySQL has shapes support since 5.6)

Re:Redis 3.2.0 is out by antirez on Friday May 06, 2016 @07:54AM (#11643276)
If you think to geo-aware mobile applications, many are of the kind "show me XYZ near me". So that's the main use case basically. According to the fact a lot of people switched to 3.2 while it was yet not stable in order to use this feature I believe there is a big demand.
Re:Redis 3.2.0 is out by joeblau on Friday May 06, 2016 @07:50AM (#11643249)
Back 5 years ago, this would have helped us at our company. We were doing realtime data analytics and we had to dump our data to Postgres to run any geo queries.
Re:Redis 3.2.0 is out by NatW on Friday May 06, 2016 @11:29PM (#11648261)
The Geo API allows it to work like a search engine.

On my wish list would be adding a bounding box query to return results within a map displayed on the current screen: e.g.: https://www.algolia.com/doc/javascript#search__inside-boundi... or e.g.: http://postgis.refractions.net/docs/ST_MakeEnvelope.html