Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PoC] Add GeoSearch Index and search #259

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

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