Skip to content

Set both a default radius and a dynamic radius column in near query #1597

@mnort9

Description

@mnort9

When using the near query and specifying a dynamic radius column, is it possible to also set a default radius if the dynamic radius is not set for that row?

Something like: Location.near([lat, lng], 25, :effective_radius)

This would be more convenient than setting a default value in the database that might change later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions