Comments (8)
Hi @jafitzwater
you already noticed that this does not work right now out of the box. A NEARBY search is currently limited to either no boundary, or a search radius (circle). If you'd wish NEARBY to only consider your input polygon, somebody would have to extend the NEARBY command here.
If this is something you'd consider @tidwall I'd be happy to give it a shot?
from tile38.
Yes, this is exactly what im thinking, would love to utilize this in some of the projects. I'm sure there has to be others that would utilize this too. Seems like a option that should be included 100%
from tile38.
@iwpnd What do you think the syntax would look like?
from tile38.
hmm
NEARBY fleet POINT 33.462 -112.268 OBJECT {}
But that looks confusing, given the syntax of the other searches. It would also be hell for existing clients.
edit:
NEARBY fleet POINT 33.462 -112.268 FROM OBJECT {}
NEARBY fleet POINT 33.462 -112.268 FROM CIRCLE 33.462 -112.268 1000
more concise, but would also annoy existing clients
from tile38.
What are the thoughts on this? thanks for considering it!
from tile38.
Perhaps we just add a new option to the NEARBY that works similar to the LIMIT option, but for a geometry.
Similar to the FROM that @iwpnd suggested but maybe more client friendly.
NEARBY fleet LIMIT_WITHIN geom POINT 33.464 -112.268
NEARBY fleet LWITHIN geom POINT 33.464 -112.268
from tile38.
Happy new year! Just checking on any additional thoughts on this if its something that can happen still?
from tile38.
NEARBY fleet LIMIT_WITHIN geom POINT 33.464 -112.268 NEARBY fleet LWITHIN geom POINT 33.464 -112.268
These options seem like they would work and as you stated seem very client friendly, any thoughts on the integration of this option?
from tile38.
Related Issues (20)
- Missing "fields" in version 1.30.2 HOT 1
- Using HTTP to call command scan to filter json field not working.
- webhook detect is coming as undefined HOT 1
- outdated replace usage in go.mod HOT 1
- Filter array on an object fields HOT 4
- No support for batched/bulk calls to tile38 with java-client HOT 1
- Get hooks for a key of moving points to that of a key of Geofences HOT 6
- What is the performance/complexity when we add MATCH and WHERE to a command HOT 3
- multipolygon support HOT 3
- Issue with intersect when defining detect exit/enter HOT 3
- Apologies this was an accident HOT 1
- Protocol error: expected '$', got '*' on large bulk SETs HOT 2
- Heap size not coming down after objects are removed HOT 20
- Support the `ROLE` command so that Redis.Sentinel is fully supported. HOT 5
- Support any Redis GUI manager HOT 1
- Followers falls out of sync but reports they are perfectly in sync if leader dies and comes back empty HOT 2
- Follower configured from /data/config will not give up trying to connect to bad leader HOT 1
- Following a new leader should abort current load of the AOF
- HEALTHZ should not be AUTH protected
- To properly support kubernetes & Sentinel. replica_announce properties should be supported HOT 1
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 tile38.