public static function fromFilterArray(array $array): LocationRange
    {
        $coordinates = array_map(function (array $coordinate) {
            return Coordinate::createFromArray($coordinate);
        }, $array['coordinates']);

        return new Polygon($coordinates);
    }
public static function fromFilterArray(array $array): LocationRange
    {
        $coordinates = array_map(function (array $coordinate) {
            return Coordinate::createFromArray($coordinate);
        }, $array['coordinates']);

        return new Polygon($coordinates);
    }
public static function fromFilterArray ( array $ array ) : LocationRange { $ coordinates = array_map ( function ( array $ coordinate ) { return Coordinate :: createFromArray ( $ coordinate ) ; } , $ array [ 'coordinates' ] ) ; return new Polygon ( $ coordinates ) ; }
From filter array.

@param array $array

@return LocationRange
From filter array .