public static function convertLocationCoordinates(Location $location)
    {
        $coordinates = $location->getCoordinates()->getCoordinates();
        $coordinate = doubleval($coordinates[1]) . '%' . doubleval($coordinates[0]);
        $coordinate = strtr($coordinate, [
            '%'=>',',
            ','=>'.'
        ]);
        return $coordinate;
    }
public static function convertLocationCoordinates(Location $location)
    {
        $coordinates = $location->getCoordinates()->getCoordinates();
        $coordinate = doubleval($coordinates[1]) . '%' . doubleval($coordinates[0]);
        $coordinate = strtr($coordinate, [
            '%'=>',',
            ','=>'.'
        ]);
        return $coordinate;
    }
public static function convertLocationCoordinates ( Location $ location ) { $ coordinates = $ location -> getCoordinates ( ) -> getCoordinates ( ) ; $ coordinate = doubleval ( $ coordinates [ 1 ] ) . '%' . doubleval ( $ coordinates [ 0 ] ) ; $ coordinate = strtr ( $ coordinate , [ '%' => ',' , ',' => '.' ] ) ; return $ coordinate ; }
Convert Location coordinate into acceptable solr document format
@param Location $location
@return string
Convert Location coordinate into acceptable solr document format