<?php

$query->whereSpatialDistance('coordinates', [1, 1], 10)
 ->orWhereSpatialDistance('coordinates', [0, 0], 1);