Comments (4)
This is something I'd be willing/able to chip in on, I'm wondering if there's any information about goals or requirements that could help me get involved? I don't want to make more work for you on a feature that's in medium term, but if there's any groundwork I can help lay I'd be glad to.
from horizon.
Thanks for offering your help with this @peterlandry .
The geolocation API is still largely unspecified. The fundamental operation that we would like to provide is an operation to
- store data with location fields (in terms of langitude and longitude values)
- query on a collection for results within a given radius around a location
The first step will be to spec out an API proposal of how this functionality should be presented in the Horizon client API.
There are also going to be some technical limitations that we will have to consider for. The most important one I can think of is that RethinkDB doesn't currently support compound geospatial indexes. So if we want to allow queries that query by radius and also apply additional filtering, the filtering will not be optimized by an index. I think that might be ok, but it might also have implications for scalability and susceptibility to DoS attacks.
If on the other hand we don't allow for additional filters on a geo query result and rely on any post-filtering to be implemented in the client, that will have implications for Horizon's permission model. It will not be possible to limit access to geospatial data based on additional field values.
from horizon.
@danielmewes Is there any way to currently work with location and filtering based on distance from a specific location?
from horizon.
@dvassilev None that's exposed through Horizon. On bare RethinkDB, you can use r.table(...).getIntersecting(r.circle(location, distance), {index: "geo_index..."})
to do this.
from horizon.
Related Issues (20)
- debug: Rejecting Client without 'rethinkdb-horizon-v0' protocol()
- Roadmap HOT 9
- Organizational Meeting (April 5th) HOT 8
- Disable websockets option HOT 4
- Typo in embedded server documentation
- Error: Operation not permitted. HOT 4
- Let's Encrypt untrusted cert HOT 1
- iOS Websocket fatally fails when sending a frame over ~40kb
- [bug] "find" is required HOT 1
- Support for programmatic search filters in findAll method
- Using "rethinkdb" as an alias for the hz serve CLI connect options would failed
- /usr/app doesn't contain an .hz directory HOT 2
- Project dead ? HOT 39
- Website id down from last few days
- What is the best solution to upload files to horizen ??
- Your website's certificate is fscked up
- Please server on for this site. HOT 4
- Github will soon not support the authentication method
- auth_redirect = "/?parameter=foe" in config.toml cause token to not be successfuly created HOT 1
- [website] horizon.io taken by blockchain gaming company HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from horizon.