Feature Request: GEO Functions
It would be nice if the Medis UI could show geospatial sorted sets as lat/lon rather than just integer values, even better to perhaps render a pin on a map (but appreciate that's a much bigger UI change)
As a geospatial set is just stored internally as a standard sorted set within redis, I guess this would require some sort of implementation to support selecting how the set is interpreted.
Will take a look. Thanks for the feature request!
I made a first version of the GEO feature support:
After experimenting with the interface, I've found that I'm not particularly keen on displaying the latitude/longitude data and map in the sidebar. As an alternative, we can introduce a "Preview" menu item to the context menu that appears when a zset item is right-clicked. This would open a separate window to display the latitude/longitude data and map. Do you happen to have any suggestions, @rsmck?
That's great! I agree that it clutters the side bar and doesn't seem the right place for it, Preview in the context menu would be great, perhaps (if possible) also mimic the QuickLook behaviour in the OS so allow space bar to trigger that preview and if moving up/down the list using the arrow keys update the already open preview (QuickLook) window to the relevant key - much like browsing images in Finder?
Thanks for the advice. I've explored the sidebar idea a little bit more and came out something like:
I'll think about it furthermore and maybe try out the preview idea.
This is great, thank you! :D