public function BaseGeoProductQuery(LatLng $latLng)
    {
        $products = $this->getEntityManager()->createQueryBuilder()
            ->from('HarvestCloudCoreBundle:Product', 'p')
            ->select('p')
            ->addSelect('GEO(p.latitude = :latitude, p.longitude = :longitude) AS distance')
            ->setParameter('latitude', $latitude)
            ->setParameter('longitude', $longitude)
            ->orderBy('distance')
            ->where('GEO(p.latitude = :latitude, p.longitude = :longitude) <= 50')
            ->getQuery()
            ->execute();

        return $products;
    }