Skip to content

QueryFilter has no NEAR (location within distance) filter #490

Open

Description

@leogdion

openapi.yaml lists NEAR as a comparator, but QueryFilter (Sources/MistKit/Models/Queries/QueryFilter.swift) has no factory for it. The Filter schema also has no distance field, so a "location within N metres" query can't be sent.

Proposal: add distance to Filter (check it against the Web Services request shape) and QueryFilter.near(_:_:radiusInMeters:). Also check whether QuerySort is missing relativeLocation.

Found while building brightdigit/Mistico (vendored at Packages/MistKit, branch mistico from v1.0.0-beta.6). Tracked in brightdigit/Mistico#106.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions