Code Monkey home page Code Monkey logo

Comments (8)

iwpnd avatar iwpnd commented on June 20, 2024

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.

jafitzwater avatar jafitzwater commented on June 20, 2024

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.

tidwall avatar tidwall commented on June 20, 2024

@iwpnd What do you think the syntax would look like?

from tile38.

iwpnd avatar iwpnd commented on June 20, 2024

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.

joefitzwater avatar joefitzwater commented on June 20, 2024

What are the thoughts on this? thanks for considering it!

from tile38.

tidwall avatar tidwall commented on June 20, 2024

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.

jafitzwater avatar jafitzwater commented on June 20, 2024

Happy new year! Just checking on any additional thoughts on this if its something that can happen still?

from tile38.

jafitzwater avatar jafitzwater commented on June 20, 2024

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)

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.