Skip to content

Conversation

menthol
Copy link

@menthol menthol commented Dec 13, 2019

Proof of the concept of creating a GeoSearch Index.
The index is maintained at the same time as the main index.
To call up the GeoSearch Index search:

// $builder->query should be passed as an array
$params = [
  'locaton' => [
    'longitude' => $lng, // float
    'latitude' => $lat, // float
  ],
  'distance' => $distance, // float
  'limit' => $limit, // integer optional
];

Address::search($params);

Fix #170 #235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Geo Search possible?
1 participant