prorm API Reference
    Preparing search index...

    Interface DWithinOptions

    Options for DWithin (distance within) queries

    interface DWithinOptions {
        from: string | { type: GeometryType; coordinates: number[] };
        distance: number;
        spheroid?: boolean;
        srid?: number;
    }
    Index
    from: string | { type: GeometryType; coordinates: number[] }

    The point/geometry to measure distance from

    distance: number

    The maximum distance

    spheroid?: boolean

    Use spheroidal calculation (PostgreSQL geography, default: true)

    srid?: number

    SRID (default: 4326)