Project-GC Lua Sandbox API
Loading...
Searching...
No Matches
GetLonelyFinds

Member Function Documentation

◆ GetLonelyFinds()

GetLonelyFinds ( $profileId,
$days,
$params = [] )

Returns an associative array with finds on geocaches that haven't been found in $days days before the given player found it.

Automatically sorts on num_days descending.

To get additional related find data, use the GetFinds method and merge them together.

Parameters
int$profileId(required) An integer with the users profile id.
int$days(required) An integer with the minimum number of days required.
array$params(optional) An optional associative array of options.
  • limit (integer): Max number of rows to return
  • fallback (string): Either 'last_publish_date' or 'hidden', or not set. If set, will use the alternative field if the geocache haven't been found before.
Returns
array|false A list of lonely finds. Fields:
  • gccode (string)
  • visitdate (string)
  • former_visitdate (string)
  • num_days (integer)