Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $users = User::where('location', 'geoWithin', [
- '$geometry' => [
- 'type' => 'Polygon',
- 'coordinates' => [[
- [
- -0.1450383,
- 51.5069158,
- ],
- [
- -0.1367563,
- 51.5100913,
- ],
- [
- -0.1270247,
- 51.5013233,
- ],
- [
- -0.1450383,
- 51.5069158,
- ],
- ]],
- ],
- ]);
- "bounds" : [
- [
- 0.4614208,
- 179.7144413
- ],
- [
- -0.812961,
- 178.5828495
- ],
- [
- -2.0210651,
- -178.890295
- ],
- [
- 0.2307123,
- -177.5719357
- ]
- ],
- $users = User::where('location', 'geoWithin', [
- '$geometry' => [
- 'type' => 'Polygon',
- 'coordinates' => [$shop->bounds],
- ],
- ]);
Add Comment
Please, Sign In to add comment