2 ms·
This is a really interesting project. I love the concept of a fast, in-memory geospatial database - kind of like Redis for Geo (interestingly Redis itself has g
by simonw 11y ago
This is a really interesting project. I love the concept of a fast, in-memory geospatial database - kind of like Redis for Geo (interestingly Redis itself has grown some basic Geo features recently, but nowhere near as comprehensive as this - http://redis.io/commands/georadius http://redis.io/commands/georadius ).
The way you can subscribe to geofenced areas is particularly clever, especially when combined with the WebSocket protocol option.
The docs don't cover how to communicate polygons/etc over the protocol just yet.
I hadn't realised you could use unicode characters for identifiers in Go - very aesthetically pleasing: https://github.com/tidwall/tile38/blob/master/geojson/geo/geo.go https://github.com/tidwall/tile38/blob/master/geojson/geo/ge...
- bogomipz 11y agoTile38 lets you subscribe to geonfenced areas or Redis does? I didn't realizeze this was a thing. Could you point me to the documentation for that?
- homarp 11y agohttps://github.com/tidwall/tile38#geofencing https://github.com/tidwall/tile38#geofencing And the connection will be kept open. If any object enters or exits the 6 km radius around 33.462,-112.268 the server will respond in realtime with a message such as: {"command":"set","detect":"enter","id":"truck02","object":{"type":"Point","coordinates":[-112.2695,33.4626]}}