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)
- Ui HOT 3
- tile38_expired_keys is never returned
- RESP response encodes all field values as strings, JSON retains types of fields HOT 9
- WHERE clause with nested properties not working HOT 1
- Different geofences listening to the same collection (but with a WHERE filter) emit an event at the same time
- Tile38 does not support EXISTS command. HOT 2
- FSET does not have a FGET counterpoint HOT 2
- 使用tile
- 使用tile38如何判断点是否在库中存储的区域对象中
- How can I tell if a point is in a region with tile38 HOT 2
- How to execute INTERSECTS command through StatefulRedisConnection in Spring
- GOPATH / GOROOT HOT 2
- tile38 How to calculate the distance between two points HOT 1
- tile38 How to calculate the distance between two points HOT 1
- Invalid JSON created when setting a field to a string value like '000296'. HOT 4
- WebSocket interface doesn't reply to requests after connection upgrade HOT 6
- tile38 use Geofencing watches
- Bug: Tile38 followers can get out of sync with leaders HOT 1
- FSET transforms field names to lowercase HOT 7
- The arm64 environment is not running properly HOT 3
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.