GithubHelp home page GithubHelp logo

Comments (4)

peterlandry avatar peterlandry commented on June 3, 2024

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.

danielmewes avatar danielmewes commented on June 3, 2024

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.

danvass avatar danvass commented on June 3, 2024

@danielmewes Is there any way to currently work with location and filtering based on distance from a specific location?

from horizon.

danielmewes avatar danielmewes commented on June 3, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.