Sask Vaccine Guide Code Docs
    Preparing search index...

    Function default

    • Retrieves clinic data.

      Parameters

      • data: {
            clinicService: default;
            locationService?: default;
            searchColumn?: string;
            searchValue?: string;
            sortByDistance?: Boolean;
            url?: string;
        }

        The configuration for getting clinic information.

        • clinicService: default

          The interface to use to access clinic data.

        • OptionallocationService?: default

          This is required if data.sortByDistance is true. The service provides the users location.

        • OptionalsearchColumn?: string

          The column to search for searchValue in. Ignored unless searchValue is set. If null, all columns are searched.

        • OptionalsearchValue?: string

          Value to search for in the list of clinics. If null or an empty string, it gets all of the clinics.

        • OptionalsortByDistance?: Boolean

          If set to true then the clinics are sorted by their distance to the user, false by default. If true the locationService parameter must be set.

        • Optionalurl?: string

          The URL to retrieve the JSON formatted clinic data from. If null, only retrieves files stored on device.

      Returns ClinicResults

      Object representing the current status of clinic data loading, containing: